From d8743861960b53c3fc4fb40673fff40c6bacdff6 Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Thu, 31 Jul 2025 15:56:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 +- utils/ajax.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/App.vue b/App.vue index 860e559..0f6f4be 100644 --- a/App.vue +++ b/App.vue @@ -55,7 +55,7 @@ export default { if (uni.getStorageSync("apply-token")) { that.checkNum(); } - }, 1 * 30 * 1000); + }, 30 * 1000); } uni.$on("isGlogin", function (data) { diff --git a/utils/ajax.js b/utils/ajax.js index f709e58..aadb6c7 100644 --- a/utils/ajax.js +++ b/utils/ajax.js @@ -116,6 +116,7 @@ let data = { // console.log('测试报错123123123123123123',res); // console.log('测试报错123123123123123123$url',$url); let resData = res.data; + if (resData.status == 200) {// 正常 callback(resData.data, resData.msg); } else if (resData.status == 9999) {// 登录过期或者身份变动等需要登录的场景 @@ -137,6 +138,7 @@ let data = { // } else { uni.showToast({ title: resData.msg, + // title:'系统异常,请稍后', icon: "none" }); failback(resData.msg); @@ -167,7 +169,8 @@ let data = { }, fail (error) { uni.showToast({ - title: error.errMsg, + // title: error.errMsg, + title:'系统异常,请稍后', icon: "none" }) failback(error);