refactor(main.ts): 删除无用配置
This commit is contained in:
10
src/main.ts
10
src/main.ts
@@ -11,13 +11,8 @@ import '@/permission'
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/theme-chalk/index.css'
|
||||
|
||||
// @see https://blog.csdn.net/qq_37213281/article/details/121422027
|
||||
import * as ElIconModules from '@element-plus/icons'
|
||||
|
||||
// 国际化
|
||||
import i18n from "@/lang/index";
|
||||
import locale from 'element-plus/lib/locale/lang/zh-cn'
|
||||
|
||||
|
||||
// 自定义样式
|
||||
import '@/styles/index.scss'
|
||||
@@ -34,11 +29,6 @@ Object.keys(directive).forEach(key => {
|
||||
app.directive(key, (directive as { [key: string]: Directive })[key]);
|
||||
});
|
||||
|
||||
// 统一注册el-icon图标 https://blog.csdn.net/Alloom/article/details/119415984
|
||||
for (let iconName in ElIconModules) {
|
||||
app.component(iconName, (ElIconModules as any)[iconName])
|
||||
}
|
||||
|
||||
// 全局方法
|
||||
app.config.globalProperties.$listDictsByCode = listDictsByCode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user