摘要: public 下的资源不会经过 webpack 解析处理,准确的说应该是直接给你放进最后的 dist 目录下。项目使用应该是 %public% 这种形式 asset 目录下的会经过 webpack 的 loader 解析,应该是 url-loader,这个 loader 加载完图片后会把一下小的图片 阅读全文
posted @ 2021-07-18 01:02 coffeemil 阅读(272) 评论(0) 推荐(0)
摘要: 1.选取与选中相同的文字 //下一行Ctrl+D //选中所有 Crtl + Shift + L 2.Ctrl+Shift+P 调出用于执行命令的输入框 3.Ctrl+~ 调出cmd窗口 阅读全文
posted @ 2021-07-11 01:12 coffeemil 阅读(166) 评论(0) 推荐(0)
摘要: 1.安装依赖 npm i -S file-saver xlsx 2. 添加js文件 utils/Export2Excel.js import fs from 'file-saver' import XLSX from 'xlsx' export default (json, fields, file 阅读全文
posted @ 2021-07-08 01:03 coffeemil 阅读(202) 评论(0) 推荐(0)
摘要: 1.vue.config.js module.exports={ lintOnSave = false } 2. 使用指令 vue ui 进入ui界面关掉 阅读全文
posted @ 2021-07-08 00:56 coffeemil 阅读(387) 评论(0) 推荐(0)
摘要: this.$set(this.dsPolicyInfo, 'conditions', text) 阅读全文
posted @ 2021-06-22 17:42 coffeemil 阅读(205) 评论(0) 推荐(0)
摘要: const service = axios.create({ // axios中请求配置有baseURL选项,表示请求URL公共部分 baseURL: process.env.VUE_APP_BASE_API, // 超时 timeout: 1000000 }) download.js import 阅读全文
posted @ 2021-06-15 22:08 coffeemil 阅读(433) 评论(0) 推荐(0)
摘要: el-button点击之后不自动失焦,需要手动失焦 export function buttonBlur(ev) { console.log(ev.target); if (ev.target.nodeName == "SPAN" | ev.target.nodeName == "I") { ev. 阅读全文
posted @ 2021-06-14 00:59 coffeemil 阅读(2331) 评论(0) 推荐(0)
摘要: 自定义多列表,自定义过滤 <el-select size="mini" v-model="form.code" filterable :filter-method='filterMethod' clearable placeholder="请选择"> <el-option v-for="item i 阅读全文
posted @ 2021-06-09 01:34 coffeemil 阅读(1595) 评论(0) 推荐(0)
摘要: :header-cell-style="{textAlign: 'center'}" //表头居中:cell-style="{ textAlign: 'center' }" //内容居中 :show-overflow-tooltip="true" //超出省略号 fit //内容展开 阅读全文
posted @ 2021-06-09 00:42 coffeemil 阅读(480) 评论(0) 推荐(0)
摘要: //浏览器种显示源码 打开 config/index.js 并找到 devtool property。将其更新为: 如果你使用的是 Vue CLI 2,请设置并更新 config/index.js 内的 devtool property: devtool: 'source-map', 如果你使用的是 阅读全文
posted @ 2021-06-08 20:25 coffeemil 阅读(207) 评论(0) 推荐(0)