Browse Source

mod:配置文件

panqiuyao 8 months ago
parent
commit
154d968f94
1 changed files with 1 additions and 3 deletions
  1. 1 3
      electron/controller/camera.js

+ 1 - 3
electron/controller/camera.js

@@ -13,9 +13,7 @@ function readConfigFile(configPath) {
     // 检查文件是否存在
     if (!fs.existsSync(configPath)) {
       // 创建默认配置文件
-      const defaultConfig = {
-        digiCamControl: ''
-      };
+      const defaultConfig = {};
       fs.writeFileSync(configPath, JSON.stringify(defaultConfig, null, 2));
       return defaultConfig;
     }