Currently, I am utilizing VueJS to send data to the server and then navigate to another route.
I attempted the following code:
saveSupportArea: function () {
this.toast("success");
var that = this;
setTimeout(function(that){
that.$router.push('/areas/');
}, 3000);
});
However, an error occurred:
Uncaught TypeError: Cannot read property '$router' of undefined
I am in need of assistance. Can anyone help me with this issue?