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 数据
},
过去多啦不再A梦2017-05-19 10:33:55
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.