随笔分类 -  vue

摘要:console.log(this.$refs.testCom); VueComponent {_uid: 3, _isVue: true, $options: {…}, _renderProxy: Proxy, _self: VueComponent, …} console.log(this.$re 阅读全文
posted @ 2019-07-23 14:34 十年后2028 阅读(218) 评论(0) 推荐(0)
摘要:```js axios.interceptors.request.use( config => { store.commit('showLoading') error => { store.commit('hideLoading') }) axios.interceptors.response.use( response => { ... 阅读全文
posted @ 2019-07-13 01:15 十年后2028 阅读(105) 评论(0) 推荐(0)
摘要:路由守卫 获取参数 阅读全文
posted @ 2019-06-05 11:38 十年后2028 阅读(114) 评论(0) 推荐(0)
摘要:路由跳转的几种方式 js { path: '/CoursePlay/:cid/:ctype', name: 'CoursePlay/:rid', component: CoursePlay } this.$router.push({ path: }) //${cid}是变量 js { path: ' 阅读全文
posted @ 2019-04-30 11:08 十年后2028 阅读(101) 评论(0) 推荐(0)