From 6851cc1e217a2af9ae62ebb3bf28e00a0d8ddadb Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 31 Dec 2021 09:06:55 +0800
Subject: [PATCH] +

---
 src/pcviews/arc/dorm.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/pcviews/arc/dorm.vue b/src/pcviews/arc/dorm.vue
index 243d969..34516fa 100644
--- a/src/pcviews/arc/dorm.vue
+++ b/src/pcviews/arc/dorm.vue
@@ -3,7 +3,7 @@
  * @Name: 学生宿舍
  * @Date: 2021-11-15 17:14:47
  * @Last Modified by: Morpheus
- * @Last Modified time: 2021-12-25 14:41:30
+ * @Last Modified time: 2021-12-30 14:25:14
  */
 <template>
     <div>
@@ -24,10 +24,11 @@
     computed: {
         ...mapGetters([
             // 校内导航的显示关闭
-            'orgNavBarFlag'
+            'orgNavBarFlag',
+            'arcNavBarFlag'
         ])
     },
-    created () {
+    mounted () {
         if (this.orgNavBarFlag == true) {
             this.$store.commit('SET_ORGNAVBARTITLE', '')
             this.$store.commit('SET_ORGNAVBARLIST', [])
@@ -39,6 +40,13 @@
     },
     methods: {
 
+    },
+    beforeDestroy () {
+        if (this.arcNavBarFlag == true) {
+            this.$store.commit('SET_ARCNAVBARTITLE', '')
+            this.$store.commit('SET_ARCNAVBARCODE', '')
+            this.$store.commit('SET_ARCNAVBARFLAG', false)
+        }
     }
 }
 </script>

--
Gitblit v1.9.3