Browse Source

提交修改

newStyle
douzhuo 1 year ago
parent
commit
a04cc2f055
2 changed files with 4 additions and 3 deletions
  1. +2
    -1
      src/router/axios.js
  2. +2
    -2
      vue.config.js

+ 2
- 1
src/router/axios.js View File

@@ -63,7 +63,8 @@ axios.interceptors.response.use(res => {
NProgress.done()
const status = Number(res.status) || 200
const message = res.data.msg || errorCode[status] || errorCode['default']
if (status === 401 || status === 500) {
// || status === 500
if (status === 401) {
idx++
if(idx==1){
Message({


+ 2
- 2
vue.config.js View File

@@ -3,10 +3,10 @@
* https://cli.vuejs.org/zh/config/
*/
// const url = 'http://192.168.31.160:9999' //长龙
const url = 'http://192.168.31.85:9999' // 胜浩
// const url = 'http://192.168.31.85:9999' // 胜浩
// const url = 'http://127.0.0.1:9999' // 本地

// const url = 'http://39.97.244.65:9999' // 测试服务器
const url = 'http://39.97.244.65:9999' // 测试服务器

// const url = 'http://62.234.122.43:9999' //正式服务器1
// const url = 'https://www.aihxz.com' // 正式域名


Loading…
Cancel
Save