Browse Source

修改插入图片提示

long 3 years ago
parent
commit
10de3b9b6f

+ 3 - 3
operationSupport/src/components/Tinymce/index.vue

@@ -293,9 +293,9 @@ export default {
                 content.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) {
                     img.push(capture);
                 });
-                if (img.length >= 3) {
-                    return this.$message.warning('最多插入三张图片');
-                }
+                // if (img.length >= 3) {
+                //     return this.$message.warning('最多插入三张图片');
+                // }
                 arr.forEach((v) => window.tinymce.get(this.tinymceId).insertContent(`<img class="wscnph" src="${v.url}" />`));
             }
         }

+ 3 - 3
operationSupport/src/views/propertyManagement/inform.vue

@@ -782,9 +782,9 @@ export default {
                         content.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function (match, capture) {
                             img.push(capture);
                         });
-                        if (img.length > 3) {
-                            return this.$message.warning('最多插入三张图片');
-                        }
+                        // if (img.length > 3) {
+                        //     return this.$message.warning('最多插入三张图片');
+                        // }
                         if (
                             this.selectDataHouseTreeData.userList.length === 0 &&
                             this.selectDataPeopleTreeData &&