Browse Source

优化调用

gaoshuaixing 3 years ago
parent
commit
59bf951988
2 changed files with 2 additions and 2 deletions
  1. 1 1
      electron/config/config.default.js
  2. 1 1
      electron/controller/example.js

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

@@ -63,7 +63,7 @@ module.exports = (appInfo) => {
     url: 'https://discuz.chat/' // Any web url
   };
 
-  /* web渲染服务 */
+  /* 内置web服务 */
   config.webServer = {
     port: 7068
   };

+ 1 - 1
electron/controller/example.js

@@ -420,7 +420,7 @@ class ExampleController extends Controller {
     // 资源路径不同
     let softwarePath = '';
     if (electronApp.isPackaged) {
-      // 打包后
+      // 打包后  execDir为 应用程序 exe\dmg\dep软件所在目录;打包前该值是项目根目录
       softwarePath = path.join(this.app.config.execDir, "resources", "extraResources", softName);
     } else {
       // 打包前