From c85bb86906c04236c7fe861f8d9b3615e4bb7d13 Mon Sep 17 00:00:00 2001
From: 15179599649 <zhangyiyao89@qq.com>
Date: Fri, 22 Dec 2023 08:51:30 +0800
Subject: [PATCH] '提交内容'

---
 src/views/Addmessage/index.vue |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/views/Addmessage/index.vue b/src/views/Addmessage/index.vue
index 058d6ac..7f963a0 100644
--- a/src/views/Addmessage/index.vue
+++ b/src/views/Addmessage/index.vue
@@ -92,13 +92,11 @@
       if (this.messagecom == "" && this.submitlist.length == 0) {
         this.$toast.fail("留言内容不能为空");
       } else {
-        console.log(toData);
         leaveWords(toData).then(res => {
-          console.log(res);
-          // setTimeout(() => {
-          //   this.$router.push("/");
-          // }, 1000);
-          // this.$toast.success("添加成功");
+          setTimeout(() => {
+            this.$router.push("/");
+          }, 1000);
+          this.$toast.success("添加成功");
         });
       }
     }

--
Gitblit v1.9.3