上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页
摘要: 1、打包后dist文件夹下的index.html可以直接打开,需要修改的地方如下: -src/route/index.js, mode改为hash模式 -config/index.js, build对象下的 assetsPublicPath 改为 './', (ps:productionSource 阅读全文
posted @ 2022-05-09 10:58 yw3692582 阅读(305) 评论(0) 推荐(0)
摘要: 第一种方式(Mac终端):1、安装node.js:http://nodejs.cn/download/ 2、安装squoosh/cli:npx @squoosh/cli(这一步可以忽略) 3、如下: 通用:npx @squoosh/cli --mozjpeg '{"quality":75,"base 阅读全文
posted @ 2022-04-20 22:42 yw3692582 阅读(253) 评论(0) 推荐(0)
摘要: 封装echarts: function workOption({ work_condition_data, public_min, public_max, gauge_min, gauge_max, work_condition_unit, tem_unit, title, warn_line, } 阅读全文
posted @ 2022-03-31 08:52 yw3692582 阅读(1807) 评论(0) 推荐(0)
摘要: <template> <div class="model_box"> <div class="upload_bin"> <el-dialog width="400px" title="上传文件" :lock-scroll="true" :show-close="true" @close="cance 阅读全文
posted @ 2022-03-28 20:15 yw3692582 阅读(1838) 评论(0) 推荐(0)
摘要: template中:<el-select v-model="treeData" placeholder="请选择"> <el-option :value="treeValue" style="height: auto"> <el-tree :data="tree_list" default-expa 阅读全文
posted @ 2022-03-23 16:18 yw3692582 阅读(320) 评论(0) 推荐(0)
摘要: // 列表转树结构 list_to_tree() { let a = [ { id: 3, name: '测试3', up_id: 2, }, { id: 2, name: '测试2', up_id: 1, }, { id: 1, name: '测试1', up_id: null, }, ] let 阅读全文
posted @ 2022-03-22 16:19 yw3692582 阅读(714) 评论(0) 推荐(0)
摘要: 1、<embed id="station_svg" :src="station_svg" type="image/svg+xml" /> 2、let svg_dom = document.getElementById('station_svg').getSVGDocument() // 获取dom 阅读全文
posted @ 2022-03-18 09:19 yw3692582 阅读(919) 评论(0) 推荐(0)
摘要: 1、创建 websocket.js 文件 // 定义 websocket export default { ws: {}, setWs: function(newWs) { this.ws = newWs }, } 2、在main.js 中引入 import wsk from './utils/we 阅读全文
posted @ 2022-03-14 14:13 yw3692582 阅读(1895) 评论(0) 推荐(0)
摘要: 参考地址:https://www.cnblogs.com/yx1102/p/13170533.html 注:需要把vue的cdn地址替换掉。 阅读全文
posted @ 2022-02-09 09:25 yw3692582 阅读(398) 评论(0) 推荐(0)
摘要: 这样就可以了,判断一共多少页,然后如果当前页大于总页数则跳到最后一页 阅读全文
posted @ 2022-01-27 14:35 yw3692582 阅读(328) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 23 下一页