更新
This commit is contained in:
+4
-2
@@ -2,13 +2,15 @@
|
||||
import { useDark, useThrottleFn, useWindowSize } from '@vueuse/core'
|
||||
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
||||
|
||||
|
||||
import { ScreenEnum } from './enums/appEnums'
|
||||
import useAppStore from './stores/modules/app'
|
||||
import useSettingStore from './stores/modules/setting'
|
||||
import useUserStore from './stores/modules/user'
|
||||
import ChatNotifyToast from './components/chat-notify-toast/index.vue'
|
||||
|
||||
const appStore = useAppStore()
|
||||
const settingStore = useSettingStore()
|
||||
const userStore = useUserStore()
|
||||
const elConfig = {
|
||||
zIndex: 2000,
|
||||
locale: zhCn
|
||||
@@ -43,7 +45,7 @@ watch(
|
||||
<template>
|
||||
<el-config-provider :locale="elConfig.locale" :z-index="elConfig.zIndex">
|
||||
<router-view />
|
||||
|
||||
<ChatNotifyToast v-if="userStore.token" />
|
||||
</el-config-provider>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user