摘要: Vue.mixin({ beforeRouteLeave(to, from, next) { if (!to.path.startsWith(from.path)) { this.$destroy(); } next(); } }); 浏览器兼容性测试网站 http://caniuse.com/ h 阅读全文
posted @ 2018-08-06 16:27 五艺 阅读(1044) 评论(0) 推荐(0) 编辑