Explorar el Código

作品附件-调试-还原最少二张封面图的限制

bruce hace 5 años
padre
commit
c04aae2d78
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      components/works/editor.vue

+ 3 - 3
components/works/editor.vue

@@ -259,9 +259,9 @@
         if (this.content.length > 10000) {
         if (this.content.length > 10000) {
           return {success: false, msg: "项目正文不可大于10000字符,请删减"};
           return {success: false, msg: "项目正文不可大于10000字符,请删减"};
         }
         }
-        // if (this.workImages.length < 2) {
-        //   return {success: false, msg: "至少上传2张作品截图"};
-        // }
+        if (this.workImages.length < 2) {
+          return {success: false, msg: "至少上传2张作品截图"};
+        }
 
 
         return {success: true, msg: ""}
         return {success: true, msg: ""}
       },
       },