From 51bee8a37dacd2d407d5a1c8db68c275cc487cbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Thu, 9 Mar 2023 17:22:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96request?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/request.js b/src/core/request.js index f7a3800..eb38091 100644 --- a/src/core/request.js +++ b/src/core/request.js @@ -29,7 +29,7 @@ const request = async (args) => { if (typeof rule.auth !== "undefined" && rule.auth === true && !$store.state.user.token) { $store.commit("user/showLoginModal", true); - return; + throw "登录态失效"; } (rule.showLoading) && uni.showLoading({