From 0002833890c8b20f1ef9231ae4a7f36e2a55df5e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 19 Jan 2024 20:29:28 +0800
Subject: [PATCH] 退出登录跳转地址完善
---
src/page/index/top/index.vue | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue
index 7594a19..ad8822f 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: {
@@ -242,7 +244,13 @@
}).then(() => {
this.$store.dispatch("LogOut").then(() => {
resetRouter()
- this.$router.push({ path: "/login" })
+
+
+ if (this.webType == 'default') {
+ this.$router.push({ path: "/login" })
+ } else {
+ this.$router.push({ path: "/tenementLogin" })
+ }
})
})
}
--
Gitblit v1.9.3