fix(core): comprehensive fix for state loss across activity, ticket, workspace, favorites and community
这个提交包含在:
@@ -415,7 +415,7 @@ const expert = ref({
|
||||
nickname: '认证大神',
|
||||
avatar: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=300'
|
||||
});
|
||||
const isReceivingOrders = ref(true);
|
||||
const isReceivingOrders = ref(uni.getStorageSync('EXPERT_RECEIVING_STATUS') !== '0');
|
||||
const todayIncome = ref('0.00');
|
||||
const todayOrdersCount = ref(0);
|
||||
const waitingVerifyCount = ref(0);
|
||||
@@ -579,6 +579,7 @@ const activeOrders = ref([
|
||||
|
||||
const toggleReceivingStatus = () => {
|
||||
isReceivingOrders.value = !isReceivingOrders.value;
|
||||
uni.setStorageSync('EXPERT_RECEIVING_STATUS', isReceivingOrders.value ? '1' : '0');
|
||||
uni.showToast({
|
||||
title: isReceivingOrders.value ? '已开启在线接单通道!' : '已打烊停止接单',
|
||||
icon: 'none'
|
||||
@@ -677,6 +678,7 @@ onShow(() => {
|
||||
}, 400);
|
||||
return;
|
||||
}
|
||||
isReceivingOrders.value = uni.getStorageSync('EXPERT_RECEIVING_STATUS') !== '0';
|
||||
loadWorkspaceOrders();
|
||||
});
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户