From a04cc2f055410506e739383b351ab865f84fc5ef Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Fri, 13 Jan 2023 16:00:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/axios.js | 3 ++- vue.config.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/router/axios.js b/src/router/axios.js index 47ff382..4419e33 100644 --- a/src/router/axios.js +++ b/src/router/axios.js @@ -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({ diff --git a/vue.config.js b/vue.config.js index 884fc33..2b82699 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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' // 正式域名