定时刷新5分

This commit is contained in:
龚皓
2024-11-26 16:25:47 +08:00
parent 7551409394
commit 056c1c95bf
5 changed files with 461 additions and 293 deletions

View File

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