From dfb266eef39cc674f610b0fbc96bd0bea527c8c4 Mon Sep 17 00:00:00 2001
From: Leo_Ding <2405260743@qq.com>
Date: Mon, 20 Oct 2025 15:57:54 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layouts/components/BasicHeader.vue | 12 +++++++-----
src/views/login/platForm.vue | 22 +++++++---------------
2 files changed, 14 insertions(+), 20 deletions(-)
diff --git a/src/layouts/components/BasicHeader.vue b/src/layouts/components/BasicHeader.vue
index 5f88e8c..0e7b385 100644
--- a/src/layouts/components/BasicHeader.vue
+++ b/src/layouts/components/BasicHeader.vue
@@ -43,9 +43,13 @@
-
+
+
+
+ 返回平台
@@ -64,7 +68,7 @@ import { Modal } from 'ant-design-vue'
import { storeToRefs } from 'pinia'
import { computed, useSlots, ref } from 'vue'
import { useRouter } from 'vue-router'
-import { LoginOutlined, SettingOutlined, EditOutlined, TranslationOutlined, BarChartOutlined } from '@ant-design/icons-vue'
+import { LoginOutlined, SettingOutlined, EditOutlined, TranslationOutlined, BarChartOutlined,LeftOutlined } from '@ant-design/icons-vue'
import { useAppStore, useUserStore } from '@/store'
import ActionButton from './ActionButton.vue'
import { theme as antTheme } from 'ant-design-vue'
@@ -153,9 +157,7 @@ function handleLogout() {
*/
function handleOpen() {
- router.push({
- name: 'setting',
- })
+ router.replace({path:'/platForm'})
}
/**
diff --git a/src/views/login/platForm.vue b/src/views/login/platForm.vue
index fe1558b..c6238d6 100644
--- a/src/views/login/platForm.vue
+++ b/src/views/login/platForm.vue
@@ -62,7 +62,7 @@
@change="handleChange" :defaultOpen="true">
{{
value.name
- }}
+ }}
@@ -111,13 +111,8 @@ async function handleSelect(type) {
}
} else {
storage.local.setItem('platform', type)
- // 加载完成
- if (appStore.complete) {
- goIndex()
- } else {
- await appStore.init({ platform: type })
- goIndex()
- }
+ await appStore.init({ platform: type })
+ goIndex()
}
}
@@ -149,13 +144,10 @@ function getFirstValidRoute() {
async function handleChange(e) {
storage.local.setItem('platform', 'yunying')
storage.local.setItem('stationId', e)
- // 加载完成
- if (appStore.complete) {
- goIndex()
- } else {
- await appStore.init({ platform: 'yunying' })
- goIndex()
- }
+
+ await appStore.init({ platform: 'yunying' })
+ goIndex()
+
}