添加收藏茶室接口和完善茶室详情
This commit is contained in:
@ -32,7 +32,7 @@ const { onAuthRequired, onResponseRefreshToken } = createServerTokenAuthenticati
|
||||
}
|
||||
catch (error) {
|
||||
// 切换到登录页
|
||||
await uni.reLaunch({ url: '/pages/common/login/index' })
|
||||
await uni.reLaunch({ url: '/pages/login/login' })
|
||||
throw error
|
||||
}
|
||||
},
|
||||
@ -67,9 +67,7 @@ const alovaInstance = createAlova({
|
||||
// }
|
||||
// method.config.headers.token = token;
|
||||
|
||||
const userStore = useUserStore()
|
||||
const { token } = userStore.userInfo as unknown as IUserInfo
|
||||
|
||||
const token = uni.getStorageSync('token')
|
||||
if (!token) {
|
||||
toast.info('请先登录')
|
||||
router.switchTab('/pages/my/my', 500)
|
||||
|
||||
Reference in New Issue
Block a user