From cae0e7e2a4ab56fc50324ec78868e50a88509b02 Mon Sep 17 00:00:00 2001 From: Shang Chen Date: Tue, 8 Jul 2025 20:56:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8B=93=E6=89=91=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/top-right/index.vue | 17 +++--- src/views/dashboard-zhongzi/index.vue | 54 ++++++++++++++----- 2 files changed, 48 insertions(+), 23 deletions(-) diff --git a/src/views/dashboard-zhongzi/components/top-right/index.vue b/src/views/dashboard-zhongzi/components/top-right/index.vue index 220f80e..207e6ed 100644 --- a/src/views/dashboard-zhongzi/components/top-right/index.vue +++ b/src/views/dashboard-zhongzi/components/top-right/index.vue @@ -254,7 +254,7 @@ - { - return item.url === this.$route.path - }).id - } - this.queryDynamicConfigTitle() + }, methods: { commandKey(item) { @@ -444,6 +439,12 @@ export default { this.getPcsData() }, async getPcsData() { + if (this.$store.getters.menuList.length) { + this.permissionId = this.$store.getters.menuList.find((item) => { + return item.url === this.$route.path + }).id + } + this.queryDynamicConfigTitle() this.loading = true try { const res = await DynamicConfigPoint({ @@ -524,8 +525,6 @@ export default { }, getPcsDataValue(item, index) { const dataKey = `pcsData_${item}` - console.log(this[dataKey], dataKey) - return this[dataKey] && this[dataKey].length > index ? this[dataKey][index].value : '' } } diff --git a/src/views/dashboard-zhongzi/index.vue b/src/views/dashboard-zhongzi/index.vue index 3c4c894..364d514 100644 --- a/src/views/dashboard-zhongzi/index.vue +++ b/src/views/dashboard-zhongzi/index.vue @@ -14,7 +14,7 @@ - +