diff --git a/env/.env.development b/env/.env.development index 8c0854b..eec8195 100644 --- a/env/.env.development +++ b/env/.env.development @@ -2,12 +2,12 @@ VITE_ENV=development # 是否使用模拟数据 -VITE_USE_MOCK=true +VITE_USE_MOCK=false VITE_PORT=3000 # BASE_URL -VITE_BASE_URL==/api +VITE_BASE_URL=http://sdtrapi.qxlms.com:9030/ # 上传域名 VITE_UPLOAD_URL=/upload diff --git a/env/.env.production b/env/.env.production index 1753315..b0fff06 100644 --- a/env/.env.production +++ b/env/.env.production @@ -2,10 +2,10 @@ VITE_ENV=production # 是否使用模拟数据 -VITE_USE_MOCK=true +VITE_USE_MOCK=false # api域名 -VITE_BASE_URL=/api/v1 +VITE_BASE_URL=http://sdtrapi.qxlms.com:9030/ # 上传域名 diff --git a/src/App.vue b/src/App.vue index 4dfb86b..6fe725a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,13 +1,10 @@ + + diff --git a/src/stores/modules/user.ts b/src/stores/modules/user.ts index a289107..f9fc4af 100644 --- a/src/stores/modules/user.ts +++ b/src/stores/modules/user.ts @@ -51,6 +51,7 @@ export const useUserStore = defineStore({ // 初始化 async initUserInfo() { // + console.log('initUserInfo'); }, // 登出