15179599649
2023-12-22 c85bb86906c04236c7fe861f8d9b3615e4bb7d13
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("添加成功");
        });
      }
    }