From 97b01ad4139cf63d1b16c4f9c37a6213f4921e5d Mon Sep 17 00:00:00 2001 From: hwj Date: Wed, 27 May 2026 17:49:07 +0800 Subject: [PATCH] =?UTF-8?q?config=EF=BC=9A=E6=89=93=E5=8C=85=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- src/components/common/TabBar.vue | 8 ++++---- src/config.js | 4 +++- src/manifest.json | 2 +- src/pages/index.vue | 27 +++++++++++++++++++++++++-- src/pages/login.vue | 13 +++++++++++-- src/store/modules/user.ts | 5 +++++ src/utils/permissionMenu.js | 9 ++++++++- vite.config.js | 30 +++++++++++++++++++++++++++++- 9 files changed, 87 insertions(+), 13 deletions(-) diff --git a/.env.production b/.env.production index 05c9f78..42865f5 100644 --- a/.env.production +++ b/.env.production @@ -1 +1 @@ -VITE_APP_BASE_URL= +VITE_APP_BASE_URL=http://47.106.185.127:8089/ diff --git a/src/components/common/TabBar.vue b/src/components/common/TabBar.vue index 833e3f6..d380a43 100644 --- a/src/components/common/TabBar.vue +++ b/src/components/common/TabBar.vue @@ -6,14 +6,14 @@ diff --git a/src/config.js b/src/config.js index c50b84b..bf44f60 100644 --- a/src/config.js +++ b/src/config.js @@ -1,3 +1,5 @@ +const buildVersion = typeof __APP_BUILD_VERSION__ === 'string' ? __APP_BUILD_VERSION__ : 'dev' + // 应用全局配置 const config = { baseUrl: import.meta.env.VITE_APP_BASE_URL, @@ -6,7 +8,7 @@ const config = { // 应用名称 name: "必硕生管系统", // 应用版本 - version: "1.1.0", + version: buildVersion, // 应用logo logo: "/static/logo.png", // 官方网站 diff --git a/src/manifest.json b/src/manifest.json index b74885f..20e7cd5 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -3,7 +3,7 @@ "appid" : "__UNI__333F1FF", "description" : "", "versionName" : "1.0.0", - "versionCode" : "100", + "versionCode" : 101, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/src/pages/index.vue b/src/pages/index.vue index 18e818a..45c7064 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -24,11 +24,12 @@