From 0e4cd61cadba8a32bbb91f2ef19c7d59a48913f4 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Mon, 26 May 2025 16:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- src/layout/components/Navbar.vue | 2 +- src/router/index.js | 2 +- src/utils/request.js | 2 +- src/views/material/back/component/home.vue | 8 ++++---- vue.config.js | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.env.production b/.env.production index b9822ae9..e4773b1c 100644 --- a/.env.production +++ b/.env.production @@ -7,4 +7,4 @@ ENV = 'production' # 材料站材料库存管理系统/生产环境-公司 # VUE_APP_BASE_API = '/prod-api' # 材料站材料库存管理系统/宏源环境 -VUE_APP_BASE_API = '/iws/jiju-api' +VUE_APP_BASE_API = '/iws/clz-api' diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 74e7aec8..2ea861c3 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -99,7 +99,7 @@ export default { // location.href = '/index'; // }) console.log('🚀 ~ process.env.VUE_APP_BASE_API:', process.env.VUE_APP_BASE_API) - if (process.env.VUE_APP_BASE_API == '/iws/jiju-api') { + if (process.env.VUE_APP_BASE_API == '/iws/clz-api') { setTimeout(() => { window.location.replace( 'http://sgwpdm.ah.sgcc.com.cn/iws/', diff --git a/src/router/index.js b/src/router/index.js index b7d4a19f..76f0e65c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -245,7 +245,7 @@ Router.prototype.replace = function push(location) { export default new Router({ // mode: 'history', // 去掉url中的# - mode: process.env.VUE_APP_BASE_API == '/iws/jiju-api' ? 'hash' : 'history', // 宏源: hash + mode: process.env.VUE_APP_BASE_API == '/iws/clz-api' ? 'hash' : 'history', // 宏源: hash scrollBehavior: () => ({ y: 0 }), routes: constantRoutes }) diff --git a/src/utils/request.js b/src/utils/request.js index cedb426d..9d6b83f7 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -111,7 +111,7 @@ service.interceptors.response.use(res => { } if (code === 401) { console.log('🚀 ~ process.env.VUE_APP_BASE_API:', process.env.VUE_APP_BASE_API) - if (process.env.VUE_APP_BASE_API == '/iws/jiju-api') { + if (process.env.VUE_APP_BASE_API == '/iws/clz-api') { store.dispatch('LogOut').then(() => { }).catch((err) => { console.log('🚀 ~ store.dispatch ~ err:', err) diff --git a/src/views/material/back/component/home.vue b/src/views/material/back/component/home.vue index e65a5a23..dd967132 100644 --- a/src/views/material/back/component/home.vue +++ b/src/views/material/back/component/home.vue @@ -109,9 +109,9 @@ - + - + @@ -125,12 +125,12 @@ 已驳回 --> - +