对接接口
This commit is contained in:
@ -64,7 +64,7 @@ const alovaInstance = createAlova({
|
||||
const token = uni.getStorageSync('token')
|
||||
if (!token) {
|
||||
toast.info('请先登录')
|
||||
router.switchTab(import.meta.env.VITE_LOGIN_URL, 500)
|
||||
router.navigateTo(import.meta.env.VITE_LOGIN_URL, 500)
|
||||
throw new Error('[请求错误]:未登录')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user