区域,海南不调getLastData

This commit is contained in:
sjl
2025-12-26 11:16:48 +08:00
parent a9245abb5c
commit 83e57c92b4
2 changed files with 21 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ import { getLastData } from '@/api/systerm'
const Version: any = ref(null)
const config = useConfig()
const getTheme = JSON.parse(window.localStorage.getItem('getTheme') as string)
const VITE_FLAG = import.meta.env.VITE_NAME == 'hainan'
const onMenuCollapse = () => {
showShade('ba-aside-menu-shade', () => {
config.setLayout('menuCollapse', true)
@@ -37,9 +37,12 @@ const onMenuCollapse = () => {
config.setLayout('menuCollapse', false)
}
onMounted(() => {
getLastData({ versionType: 'WEB' }).then(res => {
Version.value = res.data.versionName
})
if(!VITE_FLAG){
getLastData({ versionType: 'WEB' }).then(res => {
Version.value = res.data.versionName
})
}
document.title = getTheme.name
})
</script>