2 Commits

  1. 10
      utils/http.js

10
utils/http.js

@ -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) => {
uni.navigateTo({
url: '/pages/start/login/login'
})
if (res.confirm) {
userStore.clearUserInfo()
uni.navigateTo({
url: '/pages/start/login/login'
})
}
},
});
}

Loading…
Cancel
Save