A create account page, and if you create a result, I will ask him to jump to the list page.
I write the page jump code in the timer, but I can"t execute it.
if the timer is removed, it will be normal
what is the reason
axios.post("/campaign/add",campaignEntity,{
headers: {
Authorization : getCookie("token"),
},
})
.then(res=>{
if(res.data.status == 1){
this.$message({
message: "",
type: "success",
duration:1800
});
setTimeout(function()
{
alert(1111); //
this.$router.push({path:"/campaign"}); //push
},1850)
}
})