review:tabbar不能传参问题

pull/173/head
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(); getGoodsList();
} }
function initMenuIndex() { function initMenuIndex() {
// TODO @AI params.id
const appStore = sheep.$store('app'); const appStore = sheep.$store('app');
// tabbar // tabbar
const tabbarParams = appStore.paramsForTabbar || {}; const tabbarParams = appStore.paramsForTabbar || {};

View File

@ -114,13 +114,13 @@ const app = defineStore({
$router.error('InitError', res.msg || '加载失败'); $router.error('InitError', res.msg || '加载失败');
} }
}, },
// 设置paramsForTabbar // 设置 paramsForTabbar
setParamsForTabbar(params = {}) { setParamsForTabbar(params = {}) {
this.paramsForTabbar = params; this.paramsForTabbar = params;
}, },
clearParamsForTabbar() { clearParamsForTabbar() {
this.paramsForTabbar = {}; this.paramsForTabbar = {};
} },
}, },
persist: { persist: {
enabled: true, enabled: true,