diff --git a/src/main.js b/src/main.js index ffdba7f..6ecd7bf 100644 --- a/src/main.js +++ b/src/main.js @@ -18,7 +18,7 @@ import './permission' // permission control import './utils/filter' // global filter import './global.less' import moment from 'moment' -import { FormModel } from 'ant-design-vue' +import { FormModel, Empty } from 'ant-design-vue' import { hasBtnPermission } from './utils/permissions' window.Vue = Vue @@ -35,7 +35,9 @@ window.Vue = Vue // } from 'echarts/components' Vue.use(FormModel) +Vue.use(Empty) Vue.prototype.hasPerm = hasBtnPermission +Vue.prototype.$emptyImg = Empty.PRESENTED_IMAGE_SIMPLE Vue.config.productionTip = false diff --git a/src/views/index/welcome.vue b/src/views/index/welcome.vue index b8a4c9b..6559d28 100644 --- a/src/views/index/welcome.vue +++ b/src/views/index/welcome.vue @@ -1,22 +1,26 @@