优化request
This commit is contained in:
parent
1572cbcb65
commit
51bee8a37d
|
@ -29,7 +29,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 "登录态失效";
|
||||||
}
|
}
|
||||||
|
|
||||||
(rule.showLoading) && uni.showLoading({
|
(rule.showLoading) && uni.showLoading({
|
||||||
|
|
Loading…
Reference in New Issue