generated from Leo_Ding/web-template
平台管理
This commit is contained in:
parent
4f548f2f9b
commit
dfb266eef3
@ -43,9 +43,13 @@
|
|||||||
<a-spin />
|
<a-spin />
|
||||||
<template #overlay>
|
<template #overlay>
|
||||||
<a-menu>
|
<a-menu>
|
||||||
<a-menu-item key="edit" @click="handleOpen">
|
<!-- <a-menu-item key="edit" @click="handleOpen">
|
||||||
<edit-outlined />
|
<edit-outlined />
|
||||||
{{ $t('component.RightContent.profile') }}
|
{{ $t('component.RightContent.profile') }}
|
||||||
|
</a-menu-item> -->
|
||||||
|
<a-menu-item key="edit" @click="handleOpen">
|
||||||
|
<LeftOutlined />
|
||||||
|
返回平台
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item key="logout" @click="handleLogout">
|
<a-menu-item key="logout" @click="handleLogout">
|
||||||
<login-outlined></login-outlined>
|
<login-outlined></login-outlined>
|
||||||
@ -64,7 +68,7 @@ import { Modal } from 'ant-design-vue'
|
|||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
import { computed, useSlots, ref } from 'vue'
|
import { computed, useSlots, ref } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
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 { useAppStore, useUserStore } from '@/store'
|
||||||
import ActionButton from './ActionButton.vue'
|
import ActionButton from './ActionButton.vue'
|
||||||
import { theme as antTheme } from 'ant-design-vue'
|
import { theme as antTheme } from 'ant-design-vue'
|
||||||
@ -153,9 +157,7 @@ function handleLogout() {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function handleOpen() {
|
function handleOpen() {
|
||||||
router.push({
|
router.replace({path:'/platForm'})
|
||||||
name: 'setting',
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -111,14 +111,9 @@ async function handleSelect(type) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
storage.local.setItem('platform', type)
|
storage.local.setItem('platform', type)
|
||||||
// 加载完成
|
|
||||||
if (appStore.complete) {
|
|
||||||
goIndex()
|
|
||||||
} else {
|
|
||||||
await appStore.init({ platform: type })
|
await appStore.init({ platform: type })
|
||||||
goIndex()
|
goIndex()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
async function goIndex() {
|
async function goIndex() {
|
||||||
@ -149,13 +144,10 @@ function getFirstValidRoute() {
|
|||||||
async function handleChange(e) {
|
async function handleChange(e) {
|
||||||
storage.local.setItem('platform', 'yunying')
|
storage.local.setItem('platform', 'yunying')
|
||||||
storage.local.setItem('stationId', e)
|
storage.local.setItem('stationId', e)
|
||||||
// 加载完成
|
|
||||||
if (appStore.complete) {
|
|
||||||
goIndex()
|
|
||||||
} else {
|
|
||||||
await appStore.init({ platform: 'yunying' })
|
await appStore.init({ platform: 'yunying' })
|
||||||
goIndex()
|
goIndex()
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user