diff --git a/src/components/modules/module.vue b/src/components/modules/module.vue index a05dab1..c9eb4ce 100644 --- a/src/components/modules/module.vue +++ b/src/components/modules/module.vue @@ -80,41 +80,43 @@ - - -
- -

上传图片

-
-
-

只支持.jpg,.png格式

-
-
- - 上传视频 - - - - 上传资源 - +
+ + +
+ +

上传图片

+
+
+

只支持.jpg,.png格式

+
+
+ + 上传视频 + + + + 上传资源 + + +
设置链接 diff --git a/src/const/modules.js b/src/const/modules.js index 405c1ee..4e07e62 100644 --- a/src/const/modules.js +++ b/src/const/modules.js @@ -5562,7 +5562,7 @@ export default { type: 'upload', prop: 'pic', label: '图片', - required: true + required: false }, ], form: { diff --git a/src/pages/article/add/index.vue b/src/pages/article/add/index.vue index 1c802f6..f3f27cd 100644 --- a/src/pages/article/add/index.vue +++ b/src/pages/article/add/index.vue @@ -2,7 +2,7 @@

文章详情

- + - + + +
{{ modules[3].form.title }}
查看更多 >
-

+
点击更换标题、链接与描述

热门岗位

@@ -61,7 +61,7 @@
{{ modules[6].form.title }}
查看更多 >
-

+
点击更换标题、链接与描述

热门岗位

diff --git a/src/styles/page/page.scss b/src/styles/page/page.scss index bc888f3..b5b018c 100644 --- a/src/styles/page/page.scss +++ b/src/styles/page/page.scss @@ -149,7 +149,15 @@ $avatar-height: 80px; color: #8c939d; } } -/deep/ .uploader { +/deep/.uploader-wrap { + display: flex; + .del { + margin-left: 5px; + font-size: 18px; + cursor: pointer; + } +} +/deep/.uploader { .el-upload { position: relative; width: $avatar-width;