gks 1 жил өмнө
parent
commit
9749ddfac3

+ 8 - 5
src/views/system/notice/index.vue

@@ -379,11 +379,14 @@ export default {
               this.getList();
             });
           } else {
-            addNotice(this.form).then((response) => {
-              this.$modal.msgSuccess("新增成功");
-              this.open = false;
-              this.getList();
-            });
+            const pattern = /\"/g;
+            this.form.noticeContent = this.form.noticeContent.replace(pattern, "'");
+            console.log(this.form.noticeContent);
+            // addNotice(this.form).then((response) => {
+            //   this.$modal.msgSuccess("新增成功");
+            //   this.open = false;
+            //   this.getList();
+            // });
           }
         }
       });