As the title states, this.$router.go(-1) is used in the business logic to implement rollback, but how to request background data again after rollback?
Currently the logic for requesting background data is written in mounted, but mounted will not trigger when rolling back
mounted:function(){
// ajax get 数据
},
Try adding a timestamp after the request address.
can clearly tell you that when calling back, any life cycle callback of the target route will be executed, including
mounted
.So you might as well check your code to see if there is any logic problem.