From 3316b73450b3fb16f5490eb52036051916d8cfa6 Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 27 Nov 2024 17:55:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96wxmpConfig=E7=BB=84=E4=BB=B6t?= =?UTF-8?q?abBar=E9=85=8D=E7=BD=AE=E6=9B=B4=E6=96=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/develop/AppDeployCustom/config/wxmpConfig.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/project/oms/apps/develop/AppDeployCustom/config/wxmpConfig.vue b/project/oms/apps/develop/AppDeployCustom/config/wxmpConfig.vue index 7fc0b298..73c7d84c 100644 --- a/project/oms/apps/develop/AppDeployCustom/config/wxmpConfig.vue +++ b/project/oms/apps/develop/AppDeployCustom/config/wxmpConfig.vue @@ -19,6 +19,11 @@ export default { this.$emit("input", this.form) }, deep: true + }, + tabBar: { + deep: true, handler(v) { + this.$set(this.form, "tabBar", v.filter(e => !!e.pagePath) || []) + } } }, data() { @@ -46,7 +51,8 @@ export default { } }, methods: { - handleTabbarChange(row, {name, label}) { + handleTabbarChange(row, {id, name, label}) { + row.id = id row.text = label row.pagePath = `pages/${name}/${name}` },