diff --git a/.env.yy b/.env.yy new file mode 100644 index 0000000..2f7d3ba --- /dev/null +++ b/.env.yy @@ -0,0 +1,27 @@ +# 页面标题 +VITE_APP_TITLE = 育人酉数平台 + +VITE_APP_ID = 'aix-win-ws-yy' + +# 生产环境配置 +VITE_APP_ENV = 'production' + +# AIx融合数字管理系统/生产环境 +VITE_APP_BASE_API = 'https://prev.ysaix.com:7868/prod-api' + +VITE_APP_DOMAIN = 'prev.ysaix.com' + +VITE_APP_UPLOAD_API = 'https://prev.ysaix.com:7868/prod-api' + +# 是否在打包时开启压缩,支持 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/' + +# websocket 地址 +VITE_APP_WS_URL = 'wss://prev.ysaix.com:7868' + +# 是否显示开发工具 +VITE_SHOW_DEV_TOOLS = 'false' diff --git a/src/main/index.js b/src/main/index.js index 0fad3d1..c886b8e 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -42,7 +42,21 @@ if(!gotTheLock){ } }) } -let logoIco = import.meta.env.MODE==='yc'||import.meta.env.MODE==='yc2'?'../../resources/yc-logo.png':'../../resources/logo2.ico' +let logoIco = "" + +switch (import.meta.env.MODE) { + case 'yc': + logoIco = '../../resources/yc-logo.png' + break + case 'yc2': + logoIco = '../../resources/yc-logo.png' + break + case 'yy': + logoIco = '../../resources/yy-logo.png' + break + default: + logoIco = '../../resources/logo2.ico' +} //登录窗口 function createLoginWindow() { if (loginWindow) return diff --git a/src/renderer/src/layout/components/Header.vue b/src/renderer/src/layout/components/Header.vue index f2cd554..705380b 100644 --- a/src/renderer/src/layout/components/Header.vue +++ b/src/renderer/src/layout/components/Header.vue @@ -11,7 +11,7 @@ 《{{ curNode.itemtitle }}》