fix: 由于没有await 导致执行顺序不可控

dev
dap 2 years ago
parent 817c65f7e2
commit fbcc967b14

@ -283,11 +283,11 @@ const close = () => {
watch(
() => userDialog.visible.value,
(newValue: boolean) => {
async (newValue: boolean) => {
if (newValue) {
getTreeSelect(); //
getList(); //
initSelectUser();
await getTreeSelect(); //
await getList(); //
await initSelectUser();
} else {
tableRef.value.clearCheckboxReserve();
tableRef.value.clearCheckboxRow();

Loading…
Cancel
Save