fix: 客服重置

feat-im-0607-xwk
向文可 2 years ago
parent 14cc717538
commit eb1edf8b21

@ -91,7 +91,7 @@
}); });
const handleReset = () => { const handleReset = () => {
state.condition = { state.condition = {
storeId: null, storeId: unref(opts).store?.[0]?.id,
waiterId: null, waiterId: null,
waiterNickname: null, waiterNickname: null,
}; };
@ -101,6 +101,9 @@
loading.value = true; loading.value = true;
await store.dispatch('chatWaiter/search'); await store.dispatch('chatWaiter/search');
loading.value = false; loading.value = false;
} else {
store.commit('chatWaiter/setList', []);
store.commit('chatWaiter/setTotal', 0);
} }
}; };
watch( watch(

Loading…
Cancel
Save