2024年3月26日

摘要: 安装nginx、No match for argument: gcc 阅读全文
posted @ 2024-03-26 10:09 LeeToLee 阅读(12) 评论(0) 推荐(0) 编辑

2024年3月14日

摘要: 问题:Echarts图表快速切换,最后一次渲染中有上次的数据 解决:在 setOption方法之前,先clear // 快速切换显示错乱 先清理上次数据 Chart?.clear() Chart?.setOption(option) 阅读全文
posted @ 2024-03-14 10:09 LeeToLee 阅读(14) 评论(0) 推荐(0) 编辑

2023年12月27日

摘要: 使用fetch API来发送一个HTTP请求,然后获取response.url属性 fetch('原始URL') .then(function(response) { if (response.ok) { var redirectedURL = response.url; console.log(r 阅读全文
posted @ 2023-12-27 11:38 LeeToLee 阅读(213) 评论(0) 推荐(0) 编辑
 
摘要: // 获取完整的URL字符串 var url = window.location.href; // 获取URL字符串中的参数部分 var params = url.split('?')[1]; // 将参数部分按照&符号分割成数组 var paramsArray = params.split('&' 阅读全文
posted @ 2023-12-27 11:36 LeeToLee 阅读(47) 评论(0) 推荐(0) 编辑
 
摘要: 1.在public文件夹下,新建config/config.js文件 window["edmConfig"] = { loginConfig: { loginSource: "d d d", loginUrl: "a a a", service: "c c c" } } 2.在index.html中 阅读全文
posted @ 2023-12-27 11:33 LeeToLee 阅读(24) 评论(0) 推荐(0) 编辑

2023年11月28日

摘要: 引入外部文件时,想要只在当前组件使用,但是我们使用如下方式时,会在全局使用。因为在scoped起作用的时候,import还没有引入这个文件 <style scoped> @import "../../xx.css" </style> 使用以下方式即可 <style scoped src="../.. 阅读全文
posted @ 2023-11-28 10:17 LeeToLee 阅读(159) 评论(0) 推荐(0) 编辑

2023年11月17日

摘要: const Table0 = ref() const Table1 = ref() function syncScroll() { for (let i = 0; i < compareData.compareInfo.length; i++) { let firstTable = Table0.v 阅读全文
posted @ 2023-11-17 17:31 LeeToLee 阅读(226) 评论(0) 推荐(0) 编辑

2023年7月15日

摘要: 页面: document.oncontextmenu = function(e){return false}; 嵌套iframe:iframe中要对contentDocument禁用 // 先获取到iframe iframe.contentDocument.oncontextmenu = funct 阅读全文
posted @ 2023-07-15 10:27 LeeToLee 阅读(460) 评论(0) 推荐(0) 编辑

2023年6月21日

摘要: 1.安装Sortable.js npm install --save sortablejs 2.在当前vue中JS代码中引入 import Sortable from ‘sortablejs’ 3.在当前vue文件template el-table中指定row-key row-key="id" ro 阅读全文
posted @ 2023-06-21 16:00 LeeToLee 阅读(158) 评论(0) 推荐(0) 编辑

2023年6月14日

摘要: 在树形列表中 <el-table-column type="index" label="序号" width="55"> <template slot-scope="scope"> <!-- 父级 --> <div v-if="scope.row.hasOwnProperty('replaceType 阅读全文
posted @ 2023-06-14 15:25 LeeToLee 阅读(74) 评论(0) 推荐(0) 编辑