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 @@