xuqiang 4 lat temu
rodzic
commit
1b8206e0ae
1 zmienionych plików z 14 dodań i 14 usunięć
  1. 14 14
      src/main/zhi-rong-web/src/components/popup/Message.vue

+ 14 - 14
src/main/zhi-rong-web/src/components/popup/Message.vue

@@ -152,20 +152,20 @@ export default {
             });
         },
         submit() {
-            // let data = { ...this.formData };
-            // this.saving = true;
-            // this.$http
-            //     .post('/message/save', data, { body: 'json' })
-            //     .then(() => {
-            //         this.saving = false;
-            //         this.$message.success('成功');
-            //         this.showForm = false;
-            //     })
-            //     .catch(e => {
-            //         console.log(e);
-            //         this.saving = false;
-            //         this.$message.error(e.error);
-            //     });
+            let data = { ...this.formData };
+            this.saving = true;
+            this.$http
+                .post('/message/save', data, { body: 'json' })
+                .then(() => {
+                    this.saving = false;
+                    this.$message.success('成功');
+                    this.showForm = false;
+                })
+                .catch(e => {
+                    console.log(e);
+                    this.saving = false;
+                    this.$message.error(e.error);
+                });
         }
     },
     beforeDestroy() {