Skip to content

Commit

Permalink
perf: 优化elementprocrud css引入位置
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Feb 26, 2021
1 parent c833a4b commit b733440
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import App from './App.vue';// 下方$mount把App.vue挂载到public/index.html
import { router } from './router';// router内启用了懒加载
import 'normalize.css';// 重置css
import '@/plugins/element-pro-crud';// 引入element-pro-crud
import 'element-pro-crud/lib/ProCrud.css'; // 此处css引入需要放到element-ui css引入之前,避免样式覆盖问题

import '@/plugins/element';// vue-cli3.0以插件形式引入elementui
import '@/permission'; // 权限控制
import '@/styles/index.scss'; // 全局样式
Expand Down
1 change: 1 addition & 0 deletions src/plugins/element-pro-crud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/
import Vue from 'vue';
import ElementProCrud from 'element-pro-crud';
import 'element-pro-crud/lib/ProCrud.css'; // 此处css引入需要放到element-ui css引入之前,避免样式覆盖问题
import { crud } from '@/api/public/crud';
import * as pluginsApi from '@/api/system/form';

Expand Down

0 comments on commit b733440

Please sign in to comment.