修复快速 多次点击重置所有导致界面不显示

This commit is contained in:
shefengchun 2023-02-28 16:08:49 +08:00
parent 006d13af6a
commit 82fc72c185
1 changed files with 5 additions and 2 deletions

View File

@ -328,6 +328,7 @@ export default defineComponent({
/** /**
* 重置全部参数 * 重置全部参数
*/ */
const tmp_options=ref("")
const resetall = () => { const resetall = () => {
set?.ResetBlendingConfig().then((res) => { set?.ResetBlendingConfig().then((res) => {
let tmp = JSON.parse(res ? res.config : ""); let tmp = JSON.parse(res ? res.config : "");
@ -337,12 +338,14 @@ export default defineComponent({
config.value.row = tmp.row; config.value.row = tmp.row;
$store.commit("setfusion_configuration", res?.config); $store.commit("setfusion_configuration", res?.config);
}); });
let tmp = options.value if(options.value.length!=0){
tmp_options.value = options.value
}
options.value = "" options.value = ""
$store.commit("setSelectedProjector", "0/0"); $store.commit("setSelectedProjector", "0/0");
setTimeout(() => { setTimeout(() => {
clear_sessionStorage() clear_sessionStorage()
options.value = tmp options.value = tmp_options.value
}, 300); }, 300);
} }
/** /**