上一页 1 2 3 4 5 6 7 ··· 59 下一页
  2021年6月3日
摘要: 1,Axios http://www.axios-js.com/ npm install axios yarn add axios 2,NProgress https://madewith.cn/23 npm install --save nprogress yarn add nprogress 阅读全文
posted @ 2021-06-03 13:34 sunylat 阅读(180) 评论(0) 推荐(0)
  2021年5月30日
摘要: 1,建立directives.js文件。 import Vue from 'vue'; // v-dialogDrag: 弹窗拖拽属性 Vue.directive('drag', { bind(el, binding, vnode, oldVnode) { const dialogHeaderEl 阅读全文
posted @ 2021-05-30 08:10 sunylat 阅读(738) 评论(1) 推荐(0)
  2021年5月15日
摘要: 错误位置:实现service类中,加载mapper时候。 解决方法:用@Resource注解替换@Autowired 这两种注解的差别: @Autowired与@Resource都可以用来装配bean. 都可以写在字段上,或写在setter方法上。 @Autowired默认按类型装配(这个注解是属于 阅读全文
posted @ 2021-05-15 21:36 sunylat 阅读(642) 评论(0) 推荐(0)
  2021年4月29日
摘要: host文件位置: C:\Windows\System32\drivers\etc 修改后,需要执行命令: ipconfig /flushdns 参考: https://blog.csdn.net/bigbaojian/article/details/86662374 阅读全文
posted @ 2021-04-29 15:47 sunylat 阅读(305) 评论(0) 推荐(0)
  2021年4月22日
摘要: 一,安装: npm install -g yarn 二,切换国内源 1、查看一下当前源: yarn config get registry 2、切换为淘宝源: yarn config set registry https://registry.npm.taobao.org 3、切换为自带的: yar 阅读全文
posted @ 2021-04-22 20:12 sunylat 阅读(1811) 评论(0) 推荐(0)
摘要: 我在虚拟机中访问主机中的Vue网站,发现不能正常访问,打开浏览器调试模式,看到以下错误: Uncaught SyntaxError: Block-scoped declarations (let, const, functionUncaught SyntaxError: Block-scoped d 阅读全文
posted @ 2021-04-22 19:57 sunylat 阅读(337) 评论(0) 推荐(0)
  2021年4月20日
摘要: 错误截图: 引起错误原因:webpack版本,项目使用4版本。 解决办法: 1,删除先前版本webpack。 npm uninstall webpack 2,安装4版本的webpack。 npm install webpack@^4.0.0 --save-dev 参考: https://blog.c 阅读全文
posted @ 2021-04-20 13:12 sunylat 阅读(183) 评论(0) 推荐(0)
  2021年4月18日
摘要: VUE访问接口的时候,很可能出现跨域请求,从而被提供接口的服务器拒绝,这个问题可以直接在VUE里面解决,解决方法:在vue.config.js里面加入配置信息。 在module.exports中加入: devServer: { proxy:'http://localhost:8089' }, 这里的 阅读全文
posted @ 2021-04-18 11:52 sunylat 阅读(364) 评论(0) 推荐(0)
摘要: 当编译VUE工程时候,出现了错误: 解决方法:修改出错代码。 getEntryJs(outputName, assetSource, cssCode) { var config = {url: outputName, colors: this.options.matchColors} var con 阅读全文
posted @ 2021-04-18 11:48 sunylat 阅读(176) 评论(0) 推荐(0)
  2021年4月12日
摘要: 一、临时使用 npm --registry https://registry.npm.taobao.org install express 二、永久使用 npm config set registry https://registry.npm.taobao.org 三、验证是否更换成功 npm co 阅读全文
posted @ 2021-04-12 21:24 sunylat 阅读(417) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 59 下一页