修复点恢复时,可能会恢复多次情况

This commit is contained in:
miao 2023-03-09 14:37:46 +08:00
parent ea83d8023a
commit 66dffac3fe
1 changed files with 6 additions and 5 deletions

View File

@ -644,7 +644,7 @@
no-caps no-caps
:label="$t('revert')" :label="$t('revert')"
color="primary" color="primary"
@click="refresh_all" @click="back_all"
/> />
<q-btn <q-btn
ref="accept" ref="accept"
@ -963,7 +963,8 @@ export default defineComponent({
}); });
} }
}); });
$store.commit("setShowMonitorList", monitorList); // $store.commit("setShowMonitorList", monitorList);
// console.log($store.state.show_monitor_list)
} }
if (!setMagic?.success) { if (!setMagic?.success) {
$q.notify({ $q.notify({
@ -1359,7 +1360,7 @@ export default defineComponent({
test_monitor_list.value[index].isactive = true; test_monitor_list.value[index].isactive = true;
}; };
let test_delete_flag = false; let test_delete_flag = false;
const refresh_all = () => { const back_all = () => {
refresh_resize(2); refresh_resize(2);
current_index.value = -1; current_index.value = -1;
monitor_list_current_index.value = -1; monitor_list_current_index.value = -1;
@ -1463,6 +1464,7 @@ export default defineComponent({
} }
} }
}); });
console.log($store.state.show_monitor_list)
} }
test_monitor_list.value.forEach((ele) => { test_monitor_list.value.forEach((ele) => {
ele.isHide = false; ele.isHide = false;
@ -1691,7 +1693,7 @@ export default defineComponent({
upload_magic_switch, upload_magic_switch,
magic_switch, magic_switch,
magic_isbutton, magic_isbutton,
refresh_all, back_all,
getpx, getpx,
lcm, lcm,
model, model,
@ -1725,7 +1727,6 @@ export default defineComponent({
console.log(a); console.log(a);
}, },
async showDialog() { async showDialog() {
console.log(1);
initialize(); initialize();
monitor_list_current_index.value = -1; monitor_list_current_index.value = -1;
show_dialog.value = true; show_dialog.value = true;