mirror of
https://gitee.com/yudaocode/yudao-mall-uniapp.git
synced 2025-12-30 01:32:26 +00:00
review:tabbar不能传参问题
This commit is contained in:
@@ -131,6 +131,7 @@
|
||||
getGoodsList();
|
||||
}
|
||||
function initMenuIndex() {
|
||||
// TODO @AI:可优化:增加一个 params.id 的兼容
|
||||
const appStore = sheep.$store('app');
|
||||
// 处理 tabbar 传参的情况
|
||||
const tabbarParams = appStore.paramsForTabbar || {};
|
||||
|
||||
@@ -120,7 +120,7 @@ const app = defineStore({
|
||||
},
|
||||
clearParamsForTabbar() {
|
||||
this.paramsForTabbar = {};
|
||||
}
|
||||
},
|
||||
},
|
||||
persist: {
|
||||
enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user