优化request
This commit is contained in:
parent
242d58d8b8
commit
862f9588df
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue