2019年11月5日
摘要: 使用方法: router.addRoutes() 方法 案例: router.addRoutes( [ { path:'/xi', component: ()=>import("./views/xi.vue") } ] ) 阅读全文
posted @ 2019-11-05 19:01 Web引领者 阅读(614) 评论(0) 推荐(0) 编辑
摘要: 主要配合路由生命周期使用 实现一个进度条的效果 使用方法: 1. 下载:npm install --save nprogress 使用:NProgress.start(); 开始 NProgress.done(); 停止 在 router 中使用路由守卫 token 重定向的使用 router.be 阅读全文
posted @ 2019-11-05 18:20 Web引领者 阅读(261) 评论(0) 推荐(0) 编辑
摘要: token 的解码要使用插件:jwt-decode 判断值不为空的方法: function isEmpty(value){ return ( value undefined || value null || (typeof value "object" && Object.keys(value).l 阅读全文
posted @ 2019-11-05 17:16 Web引领者 阅读(1522) 评论(0) 推荐(0) 编辑
摘要: nginx 反向代理,并拥有其高效的性能,并发效果好,是解决跨域最好的选择 nginx 的使用 1. 下载:在官网上下载 window 系统的 nginx 网址:http://nginx.org/en/download.html 点击后下载了 zip 文件,将其解压缩到指定的目录下面 然后我们可以在 阅读全文
posted @ 2019-11-05 08:26 Web引领者 阅读(234) 评论(0) 推荐(0) 编辑