From ec3342e1b34dd02f33dae9bed2db16a14ae8096d Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期三, 21 十二月 2022 17:06:11 +0800
Subject: [PATCH] 1

---
 src/views/Synthesis/index.vue |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/views/Synthesis/index.vue b/src/views/Synthesis/index.vue
index eec6c0b..7b76008 100644
--- a/src/views/Synthesis/index.vue
+++ b/src/views/Synthesis/index.vue
@@ -120,7 +120,14 @@
       }
     },
     //鍒濆鍖栬彍鍗曟巿鏉�
-    getPermsMenu() {
+    async getPermsMenu() {
+      if (this.$store.state.currentPerms == '') {
+        this.$store.state.currentPerms = '/comprehensive';
+      }
+      if (this.$store.state.permsEntity.length == 0) {
+        const data = await getPerms();
+        this.$store.state.permsEntity = data.result;
+      }
       var val = this.$store.state.currentPerms;
       var permsEntity = this.$store.state.permsEntity;
       for (var i = 0; i < permsEntity.length; i++) {
@@ -159,6 +166,8 @@
     },
   },
   mounted() {
+    this.getPermsMenu();
+    this.$bus.$emit('showLeftMenu', true);
     this.$store.state.mapMenuBoolean = false;
     this.$store.state.mapMenuBoxFlag = null;
     this.$store.state.mapPopBoolean = false;
@@ -166,7 +175,7 @@
   },
   //鍒濆鍖栬彍鍗曟巿鏉�
   created() {
-    this.getPermsMenu();
+    // this.getPermsMenu();
   },
 };
 </script>

--
Gitblit v1.9.3