review:tabbar不能传参问题

This commit is contained in:
YunaiV
2025-12-25 23:02:50 +08:00
parent 1cadcaac5e
commit 1d2e9bcdb5
2 changed files with 3 additions and 2 deletions

View File

@@ -131,6 +131,7 @@
getGoodsList();
}
function initMenuIndex() {
// TODO @AI可优化增加一个 params.id 的兼容
const appStore = sheep.$store('app');
// 处理 tabbar 传参的情况
const tabbarParams = appStore.paramsForTabbar || {};

View File

@@ -120,7 +120,7 @@ const app = defineStore({
},
clearParamsForTabbar() {
this.paramsForTabbar = {};
}
},
},
persist: {
enabled: true,