Browse Source

铸成goview

master
songguoqiang 8 months ago
parent
commit
9446fa9ea4
  1. 2
      .env.development
  2. 4
      .env.production
  3. 2
      src/api/axios.ts

2
.env.development

@ -1,5 +1,5 @@
# port # port
VITE_DEV_PORT = '8080' VITE_DEV_PORT = '3000'
# production path # production path
VITE_BASE_URL = 'http://127.0.0.1:12080' VITE_BASE_URL = 'http://127.0.0.1:12080'

4
.env.production

@ -1,8 +1,8 @@
# port # port
VITE_DEV_PORT = '8080' VITE_DEV_PORT = '26111'
# production path # production path
VITE_BASE_URL = 'http://dev.ccwin-in.com:25100/api' VITE_BASE_URL = 'http://10.140.10.4:26112'
# 租户开关 # 租户开关
VITE_APP_TENANT_ENABLE=false VITE_APP_TENANT_ENABLE=false

2
src/api/axios.ts

@ -40,7 +40,7 @@ axiosInstance.interceptors.request.use(
// 获取 token // 获取 token
// 重新登录 // 重新登录
if (!info) { if (!info) {
routerTurnByName(PageEnum.BASE_LOGIN_NAME) //routerTurnByName(PageEnum.BASE_LOGIN_NAME)
return config return config
} }
const userInfo = info[SystemStoreEnum.USER_INFO] const userInfo = info[SystemStoreEnum.USER_INFO]

Loading…
Cancel
Save