随笔分类 - vue
摘要://保留小数点后两位,四舍五入 numFilter(value) { let realVal = parseFloat(value).toFixed(2); return realVal; }, //保留小数点后两位,不四舍五入 numFilter(value) { let realVal = pa
阅读全文
摘要:错误原因,资源(asset)和入口起点超过指定文件限制,需要在vue.config.js文件内做如下配置: //方法1 module.exports = { //webpack配置 configureWebpack: { //关闭webpack的性能提示 performance: { hints:f
阅读全文
摘要://导出excel文件 exportExcel() { applyOrderExportExcel(this.listQuery).then((res) => { const fileName = `${+new Date()}.xlsx`; const blob = new Blob([res],
阅读全文