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("添加成功"); }); } }