From f97ddf01311bc68e3530cb22106bcb82214dce4d Mon Sep 17 00:00:00 2001 From: jiayu Date: Mon, 11 Nov 2024 14:42:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E7=89=88=E5=8E=BB=E9=99=A4?= =?UTF-8?q?=E6=9C=A8=E5=9E=92=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- .env.production | 3 ++- src/routers/index.ts | 4 ++-- src/views/login/index.vue | 6 +++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.env.development b/.env.development index 0e1bdce..08dae18 100644 --- a/.env.development +++ b/.env.development @@ -3,9 +3,9 @@ NODE_ENV = 'development' # 本地环境接口地址(/api/index.ts文件中使用) # VITE_API_URL = 'http://192.168.34.155:6677' -# VITE_API_URL = 'http://jxjzw.zhgdyun.com:6677' +VITE_API_URL = 'http://jxjzw.zhgdyun.com:6677' # VITE_API_URL = "http://jxjzw.zhgdyun.com:6678" -VITE_API_URL = 'http://222.80.185.228:6080' +# VITE_API_URL = 'http://222.80.185.228:6080' VITE_WPAPI_URL = "http://182.90.224.147:8081" # VITE_API_URL = "http://182.90.224.147:6688" diff --git a/.env.production b/.env.production index 3d2492b..6756271 100644 --- a/.env.production +++ b/.env.production @@ -2,9 +2,10 @@ NODE_ENV = "production" # 线上环境接口地址(easymock) +VITE_API_URL = "http://jxjzw.zhgdyun.com:6677" # VITE_API_URL = "http://139.9.66.234:6688" # VITE_API_URL = "http://10.11.13.202:6080" -VITE_API_URL = "http://222.80.185.228:6080" +# VITE_API_URL = "http://222.80.185.228:6080" # VITE_API_URL = "http://jxjzw.zhgdyun.com:6678" # VITE_API_URL = "http://182.90.224.147:9012" # VITE_API_URL = "http://47.104.132.250:9000" diff --git a/src/routers/index.ts b/src/routers/index.ts index b241154..75720b2 100644 --- a/src/routers/index.ts +++ b/src/routers/index.ts @@ -45,8 +45,8 @@ router.beforeEach(async (to, from, next) => { // 2.动态设置标题 const title = import.meta.env.VITE_GLOB_APP_TITLE; // document.title = to.meta.title ? `${to.meta.title} - ${title}` : title; - // document.title = to.meta.title ? `${to.meta.title} ` : title; - document.title = "木垒县新能源工程安全监管平台"; + document.title = to.meta.title ? `${to.meta.title} ` : title; + // document.title = "木垒县新能源工程安全监管平台"; // 附加.判断是否特殊进入,是的话则默认登录 console.info(to, "to..", globalStore.token); if (to.query.projectId) { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index d28ad15..a8a846b 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,8 +1,8 @@