This commit is contained in:
龚皓
2024-11-22 18:02:19 +08:00
parent 9c5122f143
commit fa85515d9b
17 changed files with 1668 additions and 1163 deletions

View File

@@ -11,6 +11,8 @@ import { useGlobalWebSocket } from './utils/useGlobalWebSocket';
import DataVVue3 from '@kjgl77/datav-vue3';
import '@kjgl77/datav-vue3/dist/style.css';
import mitt from 'mitt';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
const app = createApp(App)
@@ -20,6 +22,7 @@ app.provide('globalWebSocket', globalWebSocket);
app.use(ElementPlus, { locale: zhCn });
app.use(router);
app.use(DataVVue3);
app.use(Antd);
// 导航守卫,检查登录状态
router.beforeEach((to, from, next) => {