兰宝车间质量管理系统-前端
LiuHao
2023-04-18 d2bce3fcbe514d33eb930d33acf1f8db3fa22af9
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);