- 博客(8)
- 收藏
- 关注
原创 全局修改滚动条样式
::-webkit-scrollbar { /*滚动条整体样式*/ width: 4px; /*高宽分别对应横竖滚动条的尺寸*/ height: 1px; } ::-webkit-scrollbar-thumb { /*滚动条里面小方块*/ border-radius: 10px; box-shadow: inset 0 0 5px rgba(97, 184, 179, 0.1); background: #78b4b4; } ::-webkit-sc
2022-05-28 14:35:09 604
原创 解决vue路由跳转同一页面,携带不同参数,页面不刷新的问题
携带不同的参数跳转到同一路由,页面报错不刷新, 解决报错: 使用watch方法监听路由对象,实测有效 //相同路由跳转报错 const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err) } 页面不刷新 watch:{ '$route'(to,
2022-05-22 17:52:14 1212
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人