05 2020 档案

摘要://main.js import components from './components' Vue.use(components) //src/components/index.js import loading from './loading' import model from './mod 阅读全文
posted @ 2020-05-22 11:51 小亮- 阅读(3711) 评论(0) 推荐(0)
摘要:最近新建一个项目,配置完路由之后,发现<router-view></router-view>内容无法渲染出来,找了许久之后,才发现是一个神坑!!! 配置路由时注意,名字定义为routes 而不是routers 否则你的也内容渲染不出来。 阅读全文
posted @ 2020-05-22 10:36 小亮- 阅读(3108) 评论(0) 推荐(0)
摘要:用 test、preview、production分别表示测试,预览,生产三种环境 修改 package.json 文件如下 “scripts”: {“serve”: “vue-cli-service serve”,“test”: “vue-cli-service build --mode test 阅读全文
posted @ 2020-05-21 10:21 小亮- 阅读(1984) 评论(0) 推荐(0)
摘要:下载sass-resources-loader工具 npm install sass-resources-loader vue.config.js中加入配置 module.exports = { chainWebpack: config => { const oneOfsMap = config.m 阅读全文
posted @ 2020-05-18 15:14 小亮- 阅读(2937) 评论(0) 推荐(0)
摘要:// vue.config.js const path = require('path'); const CompressionWebpackPlugin = require("compression-webpack-plugin"); // 开启gzip压缩, 按需引用 const product 阅读全文
posted @ 2020-05-13 16:34 小亮- 阅读(8649) 评论(0) 推荐(0)
摘要:用国内镜像网址 https://npm.taobao.org/mirrors/git-for-windows/ 阅读全文
posted @ 2020-05-08 11:38 小亮- 阅读(460) 评论(0) 推荐(0)
摘要:在使用idea下的git时候发现报错 我的git-bas位置确实没有错啊,也可以启动 idea的这个地方不用引用的git-bash.exe的路径,而是git.exe,它的位置在和git-bash.exe同级的bin下 阅读全文
posted @ 2020-05-08 11:34 小亮- 阅读(1878) 评论(0) 推荐(0)
摘要:用习惯了SVN,回家要做些代码没有它还真不方便,原来程序小没问题,文件多了~版本管理就显得尤为重要了~ 今天找了几个svn空间,是免费的,因为是下午刚申请的,很多详细信息还不清楚,等以后慢慢研究下吧。这里只是做个推荐~ 下面是国内的 http://www.chinasvn.com这个没有空间的限制, 阅读全文
posted @ 2020-05-08 11:32 小亮- 阅读(3529) 评论(0) 推荐(0)
摘要:cache作用:是否在缓存中读取数据的读取。 cache属性是true(默认值)时:在第一次请求完成之后,如果地址和参数不变化,第二次去请求,会默认获取缓存中的数据,不去读取服务器端的最新数据。 cache属性是flase(默认值)时:每次读取的是最新的数据。 ajax缓存只对GET方式的请求有效, 阅读全文
posted @ 2020-05-07 15:56 小亮- 阅读(1465) 评论(0) 推荐(0)