摘要:
npm install less@4.1.1 less-loader@7.3.0 --save-dev 阅读全文
摘要:
编辑时 表单赋值使用 this.$nextTick 即可 this.$nextTick(() => { this.formData = { id: row.id, taskCode: row.taskCode, fullName: row.fullName, priority: row.priori 阅读全文
摘要:
根目录创建 .prettierrc.json { "singleQuote": true, "semi": false, "prettier.semi": true, "trailingComma": "none" } 阅读全文
摘要:
1.import _ from 'lodash' 2.function clearEmptyParam(config) { ['data', 'params'].forEach(item => { if (config[item]) { const keys = Object.keys(config 阅读全文
摘要:
// 上传图片校验 fileChange(file) { const isJPG = file.raw.type 'image/jpeg' const isPNG = file.raw.type 'image/png' const isLt2M = file.raw.size / 1024 / 10 阅读全文
摘要:
store 中 permission.js // import http from '@/utils/http'; // 导入组件(懒加载) const loadView = (view) => (resolve) => require([`@/views/${view}`], resolve); 阅读全文
摘要:
if(window.navigator.userAgent.match(/(pad|iPad|Android|prod|iPod)/i)){ console.log('移动端') }else if(window.navigator.userAgent.match(/Windows/i)){ cons 阅读全文
摘要:
import IOdometer from 'vue-odometer' import 'odometer/themes/odometer-theme-default.css' <IOdometer id="numIn" :value="amountIn" /> 阅读全文
摘要:
"vue-echarts": "^5.0.0-beta.0", "echarts": "^4.9.0", "echarts-gl": "^1.1.1", 阅读全文