From ca8267fd6c302633d000daddeaa58741ccbd7626 Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Wed, 27 May 2026 11:15:02 +0800 Subject: [PATCH] 1 --- js/nb.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/nb.js b/js/nb.js index b998669..2e4b295 100644 --- a/js/nb.js +++ b/js/nb.js @@ -45,6 +45,12 @@ export default { }, // 请求头 success: function(res) { console.log("<----",url,res,res.data.code) + + if(res.data.message == '未检测到登录用户' || res.data.message == '您还未登录'){ + uni.reLaunch({ + url: '/pages/login/login' + }) + } setTimeout(() => { uni.hideLoading(); }, 400) @@ -76,7 +82,7 @@ export default { // } }, fail: function(err) { - console.log(err) + console.log('报错信息',err) uni.hideLoading(); } })