From 59bf951988c4366b612fb1e735acd15817b5d2ae Mon Sep 17 00:00:00 2001 From: gaoshuaixing Date: Thu, 3 Mar 2022 19:35:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/config/config.default.js | 2 +- electron/controller/example.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/config/config.default.js b/electron/config/config.default.js index d327141..739814a 100644 --- a/electron/config/config.default.js +++ b/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 }; diff --git a/electron/controller/example.js b/electron/controller/example.js index ca134d9..134a598 100644 --- a/electron/controller/example.js +++ b/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 { // 打包前