From 233e4fc4f35bd00a36ee34a7fbf5e47b41db26db Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 17 Nov 2025 09:54:44 +0800
Subject: [PATCH] feat:更新初始化地形

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

diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue
index 9026c9a..071eeec 100644
--- a/src/page/index/top/index.vue
+++ b/src/page/index/top/index.vue
@@ -15,7 +15,7 @@
         <top-lock v-if="setting.lock"/>
         <top-qna />
         <top-full v-if="setting.fullscreen" title="全屏"/>
-        <img class="gateway" @click="jumpMH" src="@/assets/images/mh.png" alt="进入门户" title="进入门户" width="20" height="20">
+        <img class="gateway" @click="jumpMH" src="@/assets/images/mh.svg" alt="进入门户" title="进入门户" width="20" height="20">
       </div>
       <div class="top-user">
         <img class="top-bar__img" :src="userInfo.avatar "  alt=""/>
@@ -96,21 +96,21 @@
       this.$store.commit('SET_COLLAPSE')
     },
     logout () {
-      this.$confirm(this.$t('logoutTip'), this.$t('tip'), {
+      this.$confirm(this.$t('logoutTip'), this.$t('提示'), {
         confirmButtonText: this.$t('submitText'),
         cancelButtonText: this.$t('cancelText'),
         type: 'warning',
       }).then(() => {
         this.$store.dispatch('LogOut').then(() => {
-          // this.$router.push({ path: '/login' })
+        const env = import.meta.env.VITE_APP_ENV
           const adminUrl = import.meta.env.VITE_APP_DASHBOARD_URL
-		  window.location.replace(`${adminUrl}#/login`)
+           env === 'development' ? this.$router.push({ path: '/login' }):window.location.replace(`${adminUrl}#/login`)
         })
       })
     },
     jumpMH () {
       const adminUrl = import.meta.env.VITE_APP_DASHBOARD_URL
-		  window.open(`${adminUrl}#/gatewayPage`, '_blank')
+      window.location.href = `${adminUrl}#/gatewayPage`
     },
   },
 }

--
Gitblit v1.9.3