From 332cb84f4e7dad39dc4d7e8a2d2a0717dcf72588 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Thu, 01 Sep 2022 11:57:23 +0800
Subject: [PATCH] 添加返回引导页

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

diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue
index f293e98..97f8898 100644
--- a/src/page/index/top/index.vue
+++ b/src/page/index/top/index.vue
@@ -105,6 +105,7 @@
                         @click.native="switchDept"
                     >{{$t('navbar.switchDept')}}</el-dropdown-item>
                     <el-dropdown-item @click.native="logout" divided>{{$t('navbar.logOut')}}</el-dropdown-item>
+                    <el-dropdown-item @click.native="returnChoose">{{$t('navbar.returnChoose')}}</el-dropdown-item>
                 </el-dropdown-menu>
             </el-dropdown>
             <el-dialog title="用户信息选择" append-to-body :visible.sync="userBox" width="350px">
@@ -250,16 +251,21 @@
             done()
         },
         logout () {
-            this.$confirm(this.$t("logoutTip"), this.$t("tip"), {
-                confirmButtonText: this.$t("submitText"),
-                cancelButtonText: this.$t("cancelText"),
-                type: "warning"
-            }).then(() => {
-                this.$store.dispatch("LogOut").then(() => {
-                    resetRouter()
-                    this.$router.push({ path: "/login" })
-                })
-            })
+            // this.$confirm(this.$t("logoutTip"), this.$t("tip"), {
+            //     confirmButtonText: this.$t("submitText"),
+            //     cancelButtonText: this.$t("cancelText"),
+            //     type: "warning"
+            // }).then(() => {
+            //     this.$store.dispatch("LogOut").then(() => {
+            //         resetRouter()
+            //         this.$router.push({ path: "/login" })
+            //     })
+            // })
+            window.location.href = 'http://dev.jxpskj.com:8020/ncny/login.html'
+
+        },
+        returnChoose () {
+            window.location.href = 'http://dev.jxpskj.com:8020/ncny/systemwall2/index.html'
         }
     }
 };

--
Gitblit v1.9.3