摘要: watch: { '$route'(to, from) { if (to.fullPath !== from.fullPath) { this.$nextTick(() => { // 不加this.$nextTick时,路由跳转后还是上一次的数据,所以需要加上 this.myfunction() 阅读全文
posted @ 2021-08-19 12:03 study_php_java_C++ 阅读(737) 评论(0) 推荐(0) 编辑