Browse Source

数据格式转换

gks 1 year ago
parent
commit
9749ddfac3
1 changed files with 8 additions and 5 deletions
  1. 8 5
      src/views/system/notice/index.vue

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

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