系统菜单部分功能及planToAdd文件中的config.ts文件修改

This commit is contained in:
duyufeng
2024-08-15 10:51:58 +08:00
parent 94e5079222
commit ee565449ab
931 changed files with 12966 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
import { createApp } from 'vue';
import { createApp,nextTick } from 'vue';
import App from '/@/App.vue';
import { saasInit } from '/nerv-lib/saas';
import { apiModule } from '/@/api';
@@ -6,8 +6,16 @@ import { appConfig } from '/@/config';
import './theme/global.less';
import { LeftOutlined } from '@ant-design/icons-vue';
import { setupGlobDirectives } from '/@/directives';
import * as Icons from '@ant-design/icons-vue'
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);
// Register global directive