From bd127e679f68b1e7427f20bff34a18aed5a3f237 Mon Sep 17 00:00:00 2001
From: pixel <303176530@qq.com>
Date: Fri, 11 Jun 2021 12:01:10 +0800
Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E5=89=8D=E7=AB=AF?=
=?UTF-8?q?=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/src/core/element_lazy.js | 104 +++++++++---------
web/src/core/gin-vue-admin.js | 6 +-
web/src/main.js | 2 +-
.../autoCode/component/previewCodeDialg.vue | 82 +++++++-------
4 files changed, 97 insertions(+), 97 deletions(-)
diff --git a/web/src/core/element_lazy.js b/web/src/core/element_lazy.js
index 597be46d..ecac4b1a 100644
--- a/web/src/core/element_lazy.js
+++ b/web/src/core/element_lazy.js
@@ -8,57 +8,57 @@
import Vue from 'vue'
// 按需引入element
import {
- Button,
- Select,
- Dialog,
- Form,
- Input,
- FormItem,
- Option,
- Loading,
- Message,
- Container,
- Card,
- Dropdown,
- DropdownMenu,
- DropdownItem,
- Row,
- Col,
- Menu,
- Submenu,
- MenuItem,
- Aside,
- Main,
- Badge,
- Header,
- Tabs,
- Breadcrumb,
- BreadcrumbItem,
- Scrollbar,
- Avatar,
- TabPane,
- Divider,
- Table,
- TableColumn,
- Cascader,
- Checkbox,
- CheckboxGroup,
- Pagination,
- Tag,
- Drawer,
- Tree,
- Popover,
- Switch,
- Collapse,
- CollapseItem,
- Tooltip,
- DatePicker,
- InputNumber,
- Steps,
- Upload,
- Progress,
- MessageBox,
- Image
+ Button,
+ Select,
+ Dialog,
+ Form,
+ Input,
+ FormItem,
+ Option,
+ Loading,
+ Message,
+ Container,
+ Card,
+ Dropdown,
+ DropdownMenu,
+ DropdownItem,
+ Row,
+ Col,
+ Menu,
+ Submenu,
+ MenuItem,
+ Aside,
+ Main,
+ Badge,
+ Header,
+ Tabs,
+ Breadcrumb,
+ BreadcrumbItem,
+ Scrollbar,
+ Avatar,
+ TabPane,
+ Divider,
+ Table,
+ TableColumn,
+ Cascader,
+ Checkbox,
+ CheckboxGroup,
+ Pagination,
+ Tag,
+ Drawer,
+ Tree,
+ Popover,
+ Switch,
+ Collapse,
+ CollapseItem,
+ Tooltip,
+ DatePicker,
+ InputNumber,
+ Steps,
+ Upload,
+ Progress,
+ MessageBox,
+ Image
} from 'element-ui'
Vue.use(Button)
@@ -116,4 +116,4 @@ Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
Dialog.props.closeOnClickModal.default = false
-console.warn('[GIN-VUE-ADMIN]--按需加载elementUI成功')
\ No newline at end of file
+console.warn('[GIN-VUE-ADMIN]--按需加载elementUI成功,如出现element-ui组件无法使用问题,请至/src/core/element_lazy 下引入对应组件即可')
diff --git a/web/src/core/gin-vue-admin.js b/web/src/core/gin-vue-admin.js
index 049cf288..2b5f178c 100644
--- a/web/src/core/gin-vue-admin.js
+++ b/web/src/core/gin-vue-admin.js
@@ -3,7 +3,7 @@
*
* */
import Vue from 'vue'
-import './element_lazy'
+import './element_lazy' // 按需加载element
import uploader from 'vue-simple-uploader'
import APlayer from '@moefe/vue-aplayer'
// time line css
@@ -12,8 +12,8 @@ import '../../node_modules/timeline-vuejs/dist/timeline-vuejs.css'
import Bus from '@/utils/bus'
Vue.use(Bus)
Vue.use(APlayer, {
- defaultCover: 'https://github.com/u3u.png',
- productionTip: true
+ defaultCover: 'https://github.com/u3u.png',
+ productionTip: true
})
Vue.use(uploader)
diff --git a/web/src/main.js b/web/src/main.js
index 3fd776fd..be58a12e 100644
--- a/web/src/main.js
+++ b/web/src/main.js
@@ -1,6 +1,6 @@
import Vue from 'vue'
import App from './App.vue'
-// 引入gin-vue-admin前端组件
+// 引入gin-vue-admin前端初始化相关内容
import './core/gin-vue-admin'
// 引入封装的router
import router from '@/router/index'
diff --git a/web/src/view/systemTools/autoCode/component/previewCodeDialg.vue b/web/src/view/systemTools/autoCode/component/previewCodeDialg.vue
index 5db008f4..0664bfb9 100644
--- a/web/src/view/systemTools/autoCode/component/previewCodeDialg.vue
+++ b/web/src/view/systemTools/autoCode/component/previewCodeDialg.vue
@@ -6,60 +6,37 @@
复制
-
-
+
+