优化request

This commit is contained in:
TOP糯米 2023-03-08 00:43:54 +08:00
parent 242d58d8b8
commit 862f9588df
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ const request = async (args) => {
if (typeof rule.auth !== "undefined" && rule.auth === true && !$store.state.user.token) { if (typeof rule.auth !== "undefined" && rule.auth === true && !$store.state.user.token) {
$store.commit("user/showLoginModal", true); $store.commit("user/showLoginModal", true);
return; throw "需要登录";
} }
const headers = { const headers = {