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 @@ - +