- 博客(15)
- 收藏
- 关注
原创 vue 路由重复报错NavigationDuplicated: Avoided redundant navigation to current location:
在路由表中加入const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location) { return originalPush.call(this,location).catch(err=>err) }
2021-07-21 11:04:23
168
1
原创 vue项目关闭eslint
看了几篇是将设置里的settings.json中eslint更改成false状态"eslint.enable": false,但此方法对我这无效, 找到另一个方法取消代码检查新建vue.config.js, 在文件里添加module.exports = { lintOnSave:false }重启项目, 反人类的红线消失了...
2021-07-19 18:24:39
237
原创 vue报错[wds] disconnected
浏览器一直报错[wds] disconnected, 虽然不影响程序运行, 但难以忍受. 在网上看了很久,有人建议将vue.config.js中的host: ‘0.0.0.0’,改为host: ‘127.0.0.1’ , 但没有效果,网上看到一位前辈分享的, 直截了当的方法, 删除node_modules 重启项目报错没了, 舒服了...
2021-07-09 17:02:12
409
3
原创 vue路由导航守卫
在router文件夹下index.js中添加// 挂载路由导航守卫router.beforeEach((to,from,next)=>{ if(to.path==="/login") return next() const tokenStr=window.localStorage.getItem('token') if(!tokenStr) return next('/login') next()})...
2021-06-11 11:30:42
154
1
原创 vue更改radio选中框样式
/deep/.el-radio {.el-radio__label {color: #000;font-weight: 400;}&.is-checked {.el-radio__inner {background-color: #f06409 !important;border-color: #f06409;}}.el-radio__inner {&:hover {border-color: #f06409;}}}
2021-05-28 16:33:54
1940
原创 vue后台管理系统 去除左侧菜单栏滚动条
.el-aside { height: 100vh; background-color: #ffffff; overflow-y: auto; -ms-overflow-style: none; /* Edge */ scrollbar-width: none; /* Firefox */ &::-webkit-scrollbar { display: none; /* WebKit */ }}
2021-05-13 17:11:21
1484
原创 电脑远程连接控制另一台计算机软件
Teamviewer软件, 支持Windows、Mac、Linux. 对个人用户免费官网下载地址:https://www.teamviewer.com/en/download/
2021-05-06 13:31:25
332
原创 移动端项目浏览器真机调试
前提: 电脑和手机端连接在同一个Wi-Fi下电脑启动服务器, 本地运行项目mac端查询电脑ip地址, 终端执行ipconfig getifaddr en0, 得到IP地址在手机浏览器端, 将上边地址的localhost替换成ip地址, 点击输入...
2021-04-28 10:28:01
176
原创 移动端点击输入框输入手机号, 调用数字键盘
移动端点击输入手机号, 调用数字键盘; 安卓默认调用数字键盘, ios需要加pattern="\d*"<input="number" placeholder="请输入手机号" pattern="\d*" >
2021-04-27 14:51:09
1251
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人