兰宝车间质量管理系统-前端
疯狂的狮子Li
2023-08-15 e10f112fa075441b1799fb6c0b61f95ece70d9c7
src/main.ts
@@ -30,6 +30,9 @@
import { getConfigKey, updateConfigByKey } from '@/api/system/config';
import { parseTime, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi';
// 国际化
import i18n from '@/lang/index';
const app = createApp(App);
// 全局方法挂载
app.config.globalProperties.useDict = useDict;
@@ -46,6 +49,7 @@
app.use(ElementIcons);
app.use(router);
app.use(store);
app.use(i18n);
app.use(plugins);
// 自定义指令
directive(app);