8月
12
引入 VueRouter,访问多次访问同一个路由,就会报: Error: Avoided redundant navigation to current location:
的错。虽然不影响功能,可不好看呀。
处理
在引入 VueRouter 的地方,处理:
// 解决点击重复路由报错问题
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
Vue.use(VueRouter);
…
10月
10
8月
31
Vue 用脚手架本地测试,项目都是指向根目录,当发布到外网环境,非根目录时,有人会遇到根本进不去 vue 路由的情况。
既然用了 vue ,遇到问题总的要解决。
网上一些有用的方法
https://segmentfault.com/a/1190000014561644
https://blog.csdn.net/lensgcx/article/details/78439514
其实主要还是得处理 nginx 的 location
处理 location 的规则即可。
location 可以添加很多个不同规则。
比如:
location /{
}
location /web{
try_files $uri $uri/ /web/index.html;
}
# vue 这里的二级目录是 web
9月
21
vue
https://cn.vuejs.org/
https://www.awesomes.cn/
http://element.eleme.io/#/zh-CN/
https://www.iviewui.com/
https://n3-components.github.io/N3-components/component.html
bootstrap + vue
http://yuche.github.io/vue-strap/
https://bootstrap-vue.js.org/
https://uiv.wxsm.space/getting-started/
react
https://ant.design/index-cn
css study
http://cssreference.io/
js effects
https://threejs.org/
https://github.com/iview/iview-doc
https://threejs.org/examples/?q=waves#canvas_particles_waves
https://segmentfault.com/q/1010000010716445