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

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
:label="$t('revert')"
color="primary"
@click="refresh_all"
@click="back_all"
/>
<q-btn
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) {
$q.notify({
@ -1359,7 +1360,7 @@ export default defineComponent({
test_monitor_list.value[index].isactive = true;
};
let test_delete_flag = false;
const refresh_all = () => {
const back_all = () => {
refresh_resize(2);
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) => {
ele.isHide = false;
@ -1691,7 +1693,7 @@ export default defineComponent({
upload_magic_switch,
magic_switch,
magic_isbutton,
refresh_all,
back_all,
getpx,
lcm,
model,
@ -1725,7 +1727,6 @@ export default defineComponent({
console.log(a);
},
async showDialog() {
console.log(1);
initialize();
monitor_list_current_index.value = -1;
show_dialog.value = true;