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()
+
}