From effe6c32727a674bfef5378052f9a5731294280f Mon Sep 17 00:00:00 2001 From: lyc Date: Thu, 18 Jul 2024 15:14:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=BA=9B=E6=89=93?= =?UTF-8?q?=E5=8C=85=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 15 +++++++++++++++ electron-builder.yml | 4 ++-- src/renderer/src/components/move-file/index.vue | 2 +- .../src/components/select-subject/index.vue | 2 +- .../src/components/upload-dialog/index.vue | 2 +- src/renderer/src/layout/components/Header.vue | 4 ++-- src/renderer/src/utils/auth.js | 6 +++--- 7 files changed, 25 insertions(+), 10 deletions(-) create mode 100644 .env.production diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..5929a05 --- /dev/null +++ b/.env.production @@ -0,0 +1,15 @@ +# 页面标题 +VITE_APP_TITLE = AIx数字平台 + +# 生产环境配置 +VITE_APP_ENV = 'production' + +# AIx融合数字管理系统/生产环境 +VITE_APP_BASE_API = 'http://192.168.2.52:7863' + +# 是否在打包时开启压缩,支持 gzip 和 brotli +VITE_BUILD_COMPRESS = gzip + +VITE_APP_RES_FILE_PATH = 'https://prev.ysaix.com:7868/src/assets/textbook/booktxt/' + +VITE_APP_BUILD_BASE_PATH = 'https://prev.ysaix.com:7868/' \ No newline at end of file diff --git a/electron-builder.yml b/electron-builder.yml index 5c1d02b..52741c5 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -1,5 +1,5 @@ appId: com.electron.app -productName: electron-app +productName: AIx directories: buildResources: build files: @@ -11,7 +11,7 @@ files: asarUnpack: - resources/** win: - executableName: electron-app + executableName: AIx nsis: oneClick: false allowToChangeInstallationDirectory: true diff --git a/src/renderer/src/components/move-file/index.vue b/src/renderer/src/components/move-file/index.vue index 71c7837..79926df 100644 --- a/src/renderer/src/components/move-file/index.vue +++ b/src/renderer/src/components/move-file/index.vue @@ -54,7 +54,7 @@