会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
卢老师不想编程
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2023年8月
使用 less less-loader 对应版本
摘要: npm install less@4.1.1 less-loader@7.3.0 --save-dev
阅读全文
posted @ 2023-08-02 15:39 卢老师不想编程
阅读(1921)
评论(0)
推荐(0)
2023年7月
element 新增修改公用一个弹窗,表单resetFields不生效
摘要: 编辑时 表单赋值使用 this.$nextTick 即可 this.$nextTick(() => { this.formData = { id: row.id, taskCode: row.taskCode, fullName: row.fullName, priority: row.priori
阅读全文
posted @ 2023-07-12 15:23 卢老师不想编程
阅读(17)
评论(0)
推荐(0)
vscode 格式化 去掉自动添加结尾符号 及引号问题
摘要: 根目录创建 .prettierrc.json { "singleQuote": true, "semi": false, "prettier.semi": true, "trailingComma": "none" }
阅读全文
posted @ 2023-07-11 09:37 卢老师不想编程
阅读(125)
评论(0)
推荐(0)
前端封装方法 去掉值为空i字符串的字段
摘要: 1.import _ from 'lodash' 2.function clearEmptyParam(config) { ['data', 'params'].forEach(item => { if (config[item]) { const keys = Object.keys(config
阅读全文
posted @ 2023-07-03 14:53 卢老师不想编程
阅读(75)
评论(0)
推荐(0)
elementui 手动上传文件 post 请求
摘要: // 上传图片校验 fileChange(file) { const isJPG = file.raw.type 'image/jpeg' const isPNG = file.raw.type 'image/png' const isLt2M = file.raw.size / 1024 / 10
阅读全文
posted @ 2023-07-03 11:20 卢老师不想编程
阅读(277)
评论(0)
推荐(0)
2022年4月
VUE 动态路由简单示例
摘要: store 中 permission.js // import http from '@/utils/http'; // 导入组件(懒加载) const loadView = (view) => (resolve) => require([`@/views/${view}`], resolve);
阅读全文
posted @ 2022-04-22 09:59 卢老师不想编程
阅读(535)
评论(0)
推荐(0)
2022年3月
判断设备类型简单demo
摘要: if(window.navigator.userAgent.match(/(pad|iPad|Android|prod|iPod)/i)){ console.log('移动端') }else if(window.navigator.userAgent.match(/Windows/i)){ cons
阅读全文
posted @ 2022-03-17 10:23 卢老师不想编程
阅读(57)
评论(0)
推荐(0)
vue 数字滚动效果 "vue-odometer"
摘要: import IOdometer from 'vue-odometer' import 'odometer/themes/odometer-theme-default.css' <IOdometer id="numIn" :value="amountIn" />
阅读全文
posted @ 2022-03-16 16:45 卢老师不想编程
阅读(416)
评论(0)
推荐(0)
vue charts echarts 版本问题
摘要: "vue-echarts": "^5.0.0-beta.0", "echarts": "^4.9.0", "echarts-gl": "^1.1.1",
阅读全文
posted @ 2022-03-16 16:44 卢老师不想编程
阅读(320)
评论(0)
推荐(0)
2022年2月
导出excel
摘要: // 导出excel请求 const specialService = axios.create({ baseURL: base, timeout: 30000, headers: { 'Content-Type': 'application/json; application/octet-stre
阅读全文
posted @ 2022-02-15 15:41 卢老师不想编程
阅读(41)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告