![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Vue
米斯特孙
这个作者很懒,什么都没留下…
展开
-
[vue]vue-router.beforeEach前置守卫跳转登录页面
防止next(’/login’)进入死循环,一定要判断to.path==’/login’.前往登录页是要放行//前置守卫router.beforeEach((to, from, next) => { let token = sessionStorage.getItem('TOKEN') // log({ type: 'success', message: 'token', var...原创 2020-04-09 08:53:45 · 657 阅读 · 0 评论 -
Vue 自定义组件异步获取数据重新渲染
视图层 <myCard v-if="countView" icon="icon-yonghuzu" bgcolor="#2d8cf0" :count="homeData.govtCount" title="标题名称"></myCard>逻辑层data(){ return { countView:true } }//重新渲染组件 _th...原创 2020-04-16 11:24:26 · 1013 阅读 · 0 评论