04 2020 档案

摘要:将一个普通数组映射为对象数组 this.fileList = this.attachmentList.map(item=>{ return {id:item.id,name:item.fileName,url:item.filePath} }); 不能写成: this.fileList = this 阅读全文
posted @ 2020-04-27 16:27 青春无敌小宇宙 阅读(340) 评论(0) 推荐(0) 编辑
摘要:-S,–save 安装包信息将加到dependencies(生产阶段的依赖) npm install --save 或 npm install -S -D, –save-dev 安装包信息将加到devDependencies(开发阶段的依赖),所以开发阶段一般使用它 npm install --sa 阅读全文
posted @ 2020-04-27 10:30 青春无敌小宇宙 阅读(894) 评论(0) 推荐(0) 编辑
摘要:全局设置网络超时 axios.defaults.timeout = 30000; 单独对某个请求设置网络超时 let timeout = parseInt(paramsTimeout); this.$http.post(url, params, {timeout: timeout}) .then(r 阅读全文
posted @ 2020-04-26 10:44 青春无敌小宇宙 阅读(5549) 评论(0) 推荐(0) 编辑
摘要:Sass @mixin 与 @include @mixin 指令允许我们定义一个可以在整个样式表中重复使用的样式。 @include 指令可以将混入(mixin)引入到文档中。 @mixin important-text { color: red; font-size: 25px; font-wei 阅读全文
posted @ 2020-04-24 14:13 青春无敌小宇宙 阅读(563) 评论(0) 推荐(0) 编辑
摘要:1,在选择器前面加个Id选择器来限制 <template> <div id="wrapper"> </div></template><style>#warp .el-dialog{ width:800px}</style>2,使用/deep/ 在vue中,我们为了避免父组件的样式影响到子组件的样式, 阅读全文
posted @ 2020-04-17 16:02 青春无敌小宇宙 阅读(3665) 评论(0) 推荐(0) 编辑
摘要:数组更新注意事项 Vue 包含一组观察数组的变异方法,所以它们也将会触发视图更新。这些方法如下: push() pop() shift() unshift() splice() sort() reverse() 由于 JavaScript 的限制,Vue 不能检测以下变动的数组: 当你利用索引直接设 阅读全文
posted @ 2020-04-12 11:38 青春无敌小宇宙 阅读(828) 评论(0) 推荐(0) 编辑
摘要:$ git fetch 远程跟踪分支已更新,需要将这些更新取回本地 $ git branch -a 列出所有分支 git checkout -b dev origin/dev 作用是checkout远程的dev分支,在本地起名为dev分支,并切换到本地的dev分支 阅读全文
posted @ 2020-04-10 16:51 青春无敌小宇宙 阅读(153) 评论(0) 推荐(0) 编辑
摘要:如果你使用的是 Vue CLI 2,请设置并更新 config/index.js 内的 devtool 属性: devtool: 'source-map', 如果你使用的是 Vue CLI 3,请设置并更新 vue.config.js 内的 devtool 属性: module.exports = 阅读全文
posted @ 2020-04-10 11:22 青春无敌小宇宙 阅读(154) 评论(0) 推荐(0) 编辑
摘要:1. this.$http.post('/proxy/eventMonitorLog/cancelEventMonitorByCode', { "wardCode": this.$store.getters.env().wardCode }).then(response=>{ }).catch(er 阅读全文
posted @ 2020-04-10 10:33 青春无敌小宇宙 阅读(4788) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示