|
|
|
@ -79,16 +79,18 @@ export const http = (options) => { |
|
|
|
} |
|
|
|
if (result.data.code === 400) { |
|
|
|
const userStore = useUserStore() |
|
|
|
userStore.clearUserInfo() |
|
|
|
uni.showModal({ |
|
|
|
title: "登录失效", |
|
|
|
content: "点击确定跳转登录页面", |
|
|
|
confirmText: "确定", |
|
|
|
cancelText: "取消", |
|
|
|
success: (res) => { |
|
|
|
if (res.confirm) { |
|
|
|
userStore.clearUserInfo() |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/start/login/login' |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
}); |
|
|
|
} |
|
|
|
|