Procházet zdrojové kódy

解决上传区域

zhulizhen1111 před 4 roky
rodič
revize
798f3c485e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/views/legendLibrary/addForm.vue

+ 1 - 1
src/views/legendLibrary/addForm.vue

@@ -392,7 +392,7 @@ export default {
         // 把canvas图保存到图片服务器
         saveImg() {
             let vm = this
-            if (!this.file) {
+            if (!this.file && this.ruleForm.Type == 'Image') {
                 //修改图片的时候没有重新上传图片
                 if (this.title == '添加图例库') {
                     this.create()