You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
936 B

import { createApp,nextTick } from 'vue';
import App from '/@/App.vue';
import { saasInit } from '/nerv-lib/saas';
import { apiModule } from '/@/api';
import { appConfig } from '/@/config';
import './theme/global.less';
import { LeftOutlined } from '@ant-design/icons-vue';
import * as Icons from '@ant-design/icons-vue'
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
const app = createApp(App);
// 屏蔽黄色警告信息
app.config.warnHandler = () => null;
nextTick(() => {
// 配置全局对象
app.config.globalProperties.$icons = Icons
// Antd 注入全部图标(这样注入之后,就可以全局直接使用 icon 组件,不需要每个页面去引入了)
for (const key in Icons) { app.component(key, Icons[key as keyof typeof Icons]) }
})
app.component('LeftOutlined', LeftOutlined);
saasInit({
app,
apiModule,
appConfig,
});
// app.use(ElementPlus)
app.mount('#app');