|
|
@@ -17,9 +17,9 @@ export const tabbarList = [
|
|
|
* tabbar 状态,增加 storageSync 保证刷新浏览器时在正确的 tabbar 页面
|
|
|
*/
|
|
|
export const tabbarStore = reactive({
|
|
|
- curIdx: uni.getStorageSync('curIdx') || 0,
|
|
|
+ curIdx: uni.getStorageSync('app-tabbar-index') || 0,
|
|
|
setCurIdx(idx: number) {
|
|
|
this.curIdx = idx
|
|
|
- uni.setStorageSync('curIdx', idx)
|
|
|
+ uni.setStorageSync('app-tabbar-index', idx)
|
|
|
},
|
|
|
})
|