fix(app): 解决页面跳转冲突和登录重定向问题

- 在App.vue中延迟引导页跳转以避免首页未就绪导致的timeout错误
- 添加401跳登录页防重锁机制,防止多个接口同时返回401时的并发冲突
- 移除index.vue中的重复跳转逻辑,统一由App.vue处理首次启动跳转
- 优化record.vue中的品牌选择界面,添加"更多"展开功能和视觉改进
- 改进用量和度数输入框的样式和交互体验
This commit is contained in:
cg
2026-08-16 22:38:45 +08:00
parent 019262289c
commit 9fa22d5d1b
5 changed files with 111 additions and 20 deletions
+2 -2
View File
@@ -190,10 +190,10 @@ export default {
}
},
onShow() {
// 首次启动跳转引导页
// 首次启动跳转引导页由 App.vue onLaunch 统一处理,
// 这里不再重复 reLaunch,避免两个跳转并发导致 reLaunch:fail timeout
const isFirst = uni.getStorageSync('is_first_launch')
if (isFirst === 'true') {
uni.reLaunch({ url: '/pages/onboarding/onboarding' })
return
}
this.loadData()