bruce před 5 roky
rodič
revize
7c7c594af9
2 změnil soubory, kde provedl 5 přidání a 1 odebrání
  1. 4 0
      components/multi-uploader.vue
  2. 1 1
      components/works/editor.vue

+ 4 - 0
components/multi-uploader.vue

@@ -54,7 +54,11 @@
       handleSuccess(response, file, fileList) {
         console.log(response, file, fileList);
         if (!response.error && response.filename) {
+          console.log("处理图片上传成功");
           this.handleChange(fileList);
+        } else {
+          console.log("处理图片上传失败");
+          this.$emit("change", this.fileList);
         }
       },
 

+ 1 - 1
components/works/editor.vue

@@ -2,7 +2,7 @@
   <div class="editor">
     <!--作品名称-->
     <div class="app__dp_f app__f_r app__alig_c">
-      <h5 class="app__f_s_0"><span class="app__fc_r">*</span>作品名称1</h5>
+      <h5 class="app__f_s_0"><span class="app__fc_r">*</span>作品名称2</h5>
       <el-input type="textarea" :rows="1" resize="none" show-word-limit v-model="workName" class="app__ml_20" placeholder="50字符以内,不能包含&*\#等特殊字符"
                 :maxlength="50" @blur="workNameBlur"/>
     </div>