2025-06-25 18:26:03 +08:00
|
|
|
/*
|
|
|
|
|
* @Author: RenXiaoDong
|
|
|
|
|
* @Date: 2025-06-24 16:29:10
|
|
|
|
|
*/
|
2025-06-16 14:42:26 +08:00
|
|
|
import App from './App.vue';
|
|
|
|
|
import router from './router';
|
|
|
|
|
import store from './stores';
|
2025-07-31 10:54:04 +08:00
|
|
|
import * as directives from '@/directives';
|
2025-07-18 11:08:09 +08:00
|
|
|
|
2025-07-28 17:55:04 +08:00
|
|
|
import NoData from '@/components/no-data/index.vue';
|
|
|
|
|
import SvgIcon from '@/components/svg-icon/index.vue';
|
2025-06-16 14:42:26 +08:00
|
|
|
|
2025-07-18 11:08:09 +08:00
|
|
|
import '@/api/index';
|
2025-06-16 14:42:26 +08:00
|
|
|
import './core';
|
2025-09-05 17:45:12 +08:00
|
|
|
import '@arco-design/web-vue/dist/arco.css'; // 已移除 Arco 样式
|
2025-07-11 16:50:48 +08:00
|
|
|
|
|
|
|
|
import 'normalize.css';
|
2025-06-16 14:42:26 +08:00
|
|
|
import 'uno.css';
|
2025-07-28 17:55:04 +08:00
|
|
|
import 'virtual:svg-icons-register';
|
2025-07-18 11:08:09 +08:00
|
|
|
|
2025-06-25 18:26:03 +08:00
|
|
|
// import '@/styles/vars.css'; // 优先加载
|
2025-06-16 14:42:26 +08:00
|
|
|
|
|
|
|
|
const app = createApp(App);
|
2025-07-18 11:08:09 +08:00
|
|
|
|
|
|
|
|
app.component('NoData', NoData);
|
|
|
|
|
app.component('SvgIcon', SvgIcon);
|
|
|
|
|
|
2025-06-16 14:42:26 +08:00
|
|
|
app.use(store);
|
|
|
|
|
app.use(router);
|
2025-07-31 10:54:04 +08:00
|
|
|
|
2025-08-14 15:06:46 +08:00
|
|
|
Object.values(directives).forEach((directive) => {
|
|
|
|
|
app.use(directive);
|
|
|
|
|
}); // 注册指令
|
2025-07-31 10:54:04 +08:00
|
|
|
|
2025-08-18 17:22:11 +08:00
|
|
|
// 解决mounted中获取不到route信息
|
|
|
|
|
router.isReady().then(() => {
|
|
|
|
|
app.mount('#app');
|
|
|
|
|
});
|