Browse Source

mod:调整

panqiuyao 8 months ago
parent
commit
f4dffb3ce3

+ 2 - 2
electron/config/config.default.js

@@ -35,7 +35,7 @@ module.exports = (appInfo) => {
       webSecurity: false,
       contextIsolation: false, // false -> 可在渲染进程中使用electron的api,true->需要bridge.js(contextBridge)
       nodeIntegration: true,
-      preload: path.join(appInfo.baseDir, 'preload', 'bridge.js'),
+     // preload: path.join(appInfo.baseDir, 'preload', 'bridge.js'),
     },
     show: false,
     icon: path.join(appInfo.home, 'public', 'images', 'logo-32.png'),
@@ -64,7 +64,7 @@ module.exports = (appInfo) => {
    * 远程模式-web地址
    */
   config.remoteUrl = {
-    enable: false,
+    enable: true,
     url: 'http://localhost:3000'
   };
 

+ 1 - 1
electron/controller/utils.js

@@ -54,7 +54,7 @@ class UtilsController extends Controller {
         webSecurity: false,
         contextIsolation: false, // false -> 可在渲染进程中使用electron的api,true->需要bridge.js(contextBridge)
         nodeIntegration: true,
-        preload: path.join('../preload/preload.js','../preload/bridge.js'),
+        // preload: path.join('../preload/preload.js','../preload/bridge.js'),
 
       },
     });

+ 6 - 2
frontend/src/components/check/index.vue

@@ -93,7 +93,7 @@ const checkInfoStore = checkInfo()
 const checkSuccess = ref(false);
 
 // 检测加载状态
-const checkLoading = ref(false);
+const checkLoading = ref(true);
 
 // 定义事件发射器,用于更新父组件的 modelValue 和触发 confirm 事件
 const emit = defineEmits(['update:modelValue', 'confirm']);
@@ -139,7 +139,11 @@ watchEffect(async ()=>{
   if( useUserInfoStore.userInfo.id && checkCount.value === 0){
     if(clientStore.isClient){
       visible.value = true
-      startProgress()
+      //python 启动有延时,延迟2秒执行
+      setTimeout(()=>{
+
+        startProgress()
+      },2000)
     }
     checkCount.value++;
   }