|
|
@@ -145,12 +145,6 @@ async function checkConfirm(init){
|
|
|
type:'toggleModel'
|
|
|
})
|
|
|
}
|
|
|
- if(init){
|
|
|
- await configInfoStore.getAppConfig()
|
|
|
- if(configInfoStore.appConfig.controlType === "SmartShooter"){
|
|
|
- preview.value = configInfoStore.appConfig.userDataPath + "\\preview\\liveview.png"
|
|
|
- }
|
|
|
- }
|
|
|
if(!init) previewKey.value++;
|
|
|
|
|
|
showVideo()
|
|
|
@@ -287,8 +281,12 @@ clientStore.ipc.on(icpList.socket.message+'_run_mcu_single', async (event, resul
|
|
|
}
|
|
|
|
|
|
})
|
|
|
-onMounted(()=>{
|
|
|
- // showVideo()
|
|
|
+onMounted(async ()=>{
|
|
|
+ if(isSetting.value) showVideo()
|
|
|
+ await configInfoStore.getAppConfig()
|
|
|
+ if(configInfoStore.appConfig.controlType === "SmartShooter"){
|
|
|
+ preview.value = configInfoStore.appConfig.userDataPath + "\\preview\\liveview.png"
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
/**
|