初始化版本,引入智慧食堂模块,第三方模块
This commit is contained in:
commit
d22f88efd3
677 files changed
+69341
No files matched your search
+30
@@ -0,0 +1,30 @@
|
||||
import { createApp } from 'vue';
|
||||
import pinia from '/@/stores/index';
|
||||
import App from './App.vue';
|
||||
import router from './router';
|
||||
import { directive } from '/@/directive';
|
||||
import Components from '/@/components';
|
||||
import { i18n } from '/@/i18n';
|
||||
import { properties } from '/@/utils/globalProperties';
|
||||
import { initAntiDebug } from '/@/utils/anti-debug';
|
||||
|
||||
// Initialize anti-debug protection
|
||||
initAntiDebug();
|
||||
|
||||
// 导入全局样式
|
||||
import '/@/theme/tailwind.css';
|
||||
import '/@/theme/index.scss';
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
// 全局自定方法挂载
|
||||
properties(app);
|
||||
// 全局自定义指令挂载
|
||||
directive(app);
|
||||
|
||||
app
|
||||
.use(pinia) // pinia 存储
|
||||
.use(router) // 路由
|
||||
.use(Components) // 全局引入自定义的组件&第三方的组件
|
||||
.use(i18n) // 国际化
|
||||
.mount('#app');
|
||||
Reference in new issue
Block a user