添加收藏茶室接口和完善茶室详情

This commit is contained in:
wangxiaowei
2025-11-12 17:40:35 +08:00
parent 29bf4dae74
commit 0cad65c295
32 changed files with 1522 additions and 505 deletions

View File

@ -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)