From 862f9588dfc0fa690ddfd8c138678b151facd785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Wed, 8 Mar 2023 00:43:54 +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 bd9b32b..c5d14c5 100644 --- a/src/core/request.js +++ b/src/core/request.js @@ -27,7 +27,7 @@ const request = async (args) => { if (typeof rule.auth !== "undefined" && rule.auth === true && !$store.state.user.token) { $store.commit("user/showLoginModal", true); - return; + throw "需要登录"; } const headers = {