fix: 解决打包报错问题 (#5278)

This commit is contained in:
zhengkunwang 2024-06-04 17:02:31 +08:00 committed by GitHub
parent 8ec9f727bd
commit daab425c78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,15 +21,10 @@ import Components from '@/components';
import ElementPlus from 'element-plus';
import Fit2CloudPlus from 'fit2cloud-ui-plus';
import * as Icons from '@element-plus/icons-vue';
import VueDiff from 'vue-diff';
import 'vue-diff/dist/index.css';
import yaml from 'highlight.js/lib/languages/yaml';
VueDiff.hljs.registerLanguage('yaml', yaml);
const app = createApp(App);
app.component('SvgIcon', SvgIcon);
app.use(ElementPlus);
app.use(VueDiff);
app.use(Fit2CloudPlus, { locale: i18n.global.messages.value[localStorage.getItem('lang') || 'zh'] });
Object.keys(Icons).forEach((key) => {