From ebfc739bdbbc0dd0fccd0bf47b7d2d5397c3c511 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Fri, 22 Mar 2024 12:44:21 +0800
Subject: [PATCH] 轮播图片

---
 src/page/index/top/index.vue |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue
index 7594a19..891ca44 100644
--- a/src/page/index/top/index.vue
+++ b/src/page/index/top/index.vue
@@ -94,6 +94,7 @@
     </div>
 </template>
 <script>
+import { getStore } from "@/util/store"
 import { setTheme } from "@/util/util"
 import { resetRouter } from '@/router/router'
 import { mapGetters, mapState } from "vuex"
@@ -121,6 +122,7 @@
     name: "top",
     data () {
         return {
+            webType: getStore({ name: "webType" }),
             searchShow: false,
             userBox: false,
             userForm: {
@@ -168,7 +170,9 @@
                         }],
                     },
                 ]
-            }
+            },
+            showMenu: getStore({ name: "showMenu" }),
+            globalUserInfo: getStore({ name: "userInfo" }),
         }
     },
     filters: {},
@@ -186,7 +190,6 @@
             showFullScren: state => state.common.showFullScren,
             showCollapse: state => state.common.showCollapse,
             showSearch: state => state.common.showSearch,
-            showMenu: state => state.common.showMenu,
             showColor: state => state.common.showColor
         }),
         ...mapGetters([
@@ -242,7 +245,14 @@
             }).then(() => {
                 this.$store.dispatch("LogOut").then(() => {
                     resetRouter()
-                    this.$router.push({ path: "/login" })
+
+                    if (this.webType == 'default') {
+                        this.$router.push({ path: "/login" })
+                    } else if (this.webType == 'govern') {
+                        this.$router.push({ path: "/governLogin" })
+                    } else {
+                        this.$router.push({ path: "/tenementLogin" })
+                    }
                 })
             })
         }

--
Gitblit v1.9.3