zengh
2021-09-01 681263a3fd23548850266af7cdddca44d2a299d7
src/views/article/article.vue
@@ -209,7 +209,7 @@
              prop: "videoUrl",
              type: "upload",
              accept: "video/mp4",
              display: true,
              display: false,
              hide: true,
              span: 24,
              listType: "picture-img",
@@ -228,7 +228,8 @@
                //   lineHeights: ['1', '1.15', '1.6', '2', '2.5', '3']
                // },//wangEditor编辑的配置
                props: {
                  res: "data"
                  res: "data",
                  url: "link",
                },
              },
              hide: true,
@@ -251,7 +252,7 @@
              content.display = false;
              videoUrl.rules = [
                {
                  required: true,
                  required: false,
                  message: "请选择视频",
                  trigger: "blur",
                },
@@ -259,7 +260,7 @@
            } else {
              videoUrl.display = false;
              content.display = true;
              videoUrl.rules = [];
              videoUrl.rules = "";
            }
          }
        },
@@ -286,6 +287,9 @@
    },
    methods: {
      rowSave(row, done, loading) {
        if ( row.videoUrl.length == 0){
          row.videoUrl = "";
        }
        add(row).then(
          () => {
            this.onLoad(this.page);