Vue.mixin({ beforeRouteLeave(to, from, next) { if (!to.path.startsWith(from.path)) { this.$destroy(); } next(); } });
https://github.com/JerryYuanJ
Vue.mixin({ beforeRouteLeave(to, from, next) { if (!to.path.startsWith(from.path)) { this.$destroy(); } next(); } });
https://github.com/JerryYuanJ