05 2022 档案
摘要:出现echarts超出父盒子宽度的问题 在了解echarts绘制机制 echarts图形只绘制一次,且绘制时自动获取父级大小填写宽度 原代码mounted () { // setTimeout(() => { this.$refs.GaugeChartBox.changeCpu() this.$re
阅读全文
摘要:现在滚动条我们已经隐藏起来 /deep/.ant-table-body::-webkit-scrollbar { display: none; } 引起这个问题原因是scroll添加滚动时,在表头与表格内容都加了占位符,我们上面的隐藏只是把表格内容占位符隐藏了起来,表头还有;原因知道了我们直接看下面
阅读全文
摘要:安装:npm install node-machine-id yarn add node-machine-id const {machineId, machineIdSync} = require('node-machine-id'); console.log(machineIdSync()); /
阅读全文
摘要:搜索性能优化:主要利用防抖和节流 防抖和节流:主要目的是为了降低高频事件触发,减少dom操作或请求次数,提升性能 通常高频事件:onscroll,onresize,keyup/keydown,mousemove 防抖:在固定时间内,如果有事件触发,则会再延长固定时间,直到固定时间内没有触发事件再做处
阅读全文
摘要:npm install echarts --save yarn add echarts --save 强烈推荐 cnpm install echarts --save 2、新建js文件-->myEhcarts.js // myEhcarts.js // 引入 echarts 核心模块,核心模块提供了
阅读全文
摘要:是多显卡端口问题,导致我们不能手机调式 App running at: - Local: http://localhost:8080/ - Network: unavailable 加入两行代码解决问题 在vueConfig外加 const port = process.env.port || 80
阅读全文
摘要:错误 error unplugin-vue-define-options@0.6.1: The engine "node" is incompatible with this module. Expected version ">=14.17.0". Got "12.22.0" error Foun
阅读全文