瀏覽代碼

解决上传区域

zhulizhen1111 4 年之前
父節點
當前提交
798f3c485e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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()