摘要: F:\vue-element-admin>npm install --registry=https://registry.npm.taobao.org npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command 阅读全文
posted @ 2022-06-01 17:28 快乐的正能量 阅读(496) 评论(0) 推荐(1) 编辑
摘要: 前端request.js?b775 没有加载最新的 request.js的代码 去掉了request.js中的debugger npm run dev 之后从新打开浏览器 还是会加载之前的request.js文件 不知道为什么记录下 阅读全文
posted @ 2022-04-25 09:51 快乐的正能量 阅读(136) 评论(0) 推荐(0) 编辑
摘要: @click.native="telAlert(user.tel)" 阅读全文
posted @ 2021-05-14 13:43 快乐的正能量 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 严格检索 项目根目录添加 .prettierrc {"semi":false "singleQuote":true } 'space-before-function-paren':0 阅读全文
posted @ 2021-05-03 16:00 快乐的正能量 阅读(1377) 评论(0) 推荐(0) 编辑
摘要: npm ERR! missing script: dev 解决方案(一)运行命令npm run dev 出现 npm ERR! missing script: dev 的错误这是因为vue 版本问题,使用 npm run serve 来运行项目 阅读全文
posted @ 2021-05-03 13:09 快乐的正能量 阅读(939) 评论(0) 推荐(0) 编辑
摘要: web前端开发经常要在项目目录下启动cmd,window+R启动,定位到项目目录非常麻烦,就想能不能有个快捷方式,查了下果然有,不废话,直接上方法 1 Windows Registry Editor Version 5.00 2 3 [HKEY_CLASSES_ROOT\Directory\shel 阅读全文
posted @ 2021-05-03 11:57 快乐的正能量 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1、安装vuex依赖包 npm install vuex --save 2、导入vuex包 import vuex from 'vuex' 3、创建store对象 const store = new Vuex.store({ //state中存放的就是全局共享的数据 state:{count : 0 阅读全文
posted @ 2020-12-17 20:44 快乐的正能量 阅读(69) 评论(0) 推荐(0) 编辑
摘要: npm install -g @vue/cli-service-global 运行项目 npm run serve 阅读全文
posted @ 2020-12-17 16:32 快乐的正能量 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 调试前端代码F12,切换到source栏 阅读全文
posted @ 2020-12-16 16:40 快乐的正能量 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 项目根目录下添加 .prettierrc内容为{"sime:false","singleQuote":true} 阅读全文
posted @ 2020-11-26 10:35 快乐的正能量 阅读(689) 评论(0) 推荐(0) 编辑