2024年8月19日

摘要: 使用sortablejs拖拽el-table排序时,对于纯文本表格,正常使用即可,不会卡顿 initSort() { const tbody = document.querySelector('.el-table__body-wrapper tbody') const _this = this So 阅读全文
posted @ 2024-08-19 15:44 LeeToLee 阅读(2) 评论(0) 推荐(0) 编辑
 
摘要: 场景: 页面打开不操作,前端项目代码更新重新部署后(比如Jenkins发布部署)页面不刷新,操作页面(点击打开弹窗、切换菜单等),页面没有反应,控制台报错 Uncaught SyntaxError: Unexpected token <。这个问题偶现,只有在项目重新部署后会出现,页面刷新后就恢复正常 阅读全文
posted @ 2024-08-19 15:09 LeeToLee 阅读(2) 评论(0) 推荐(0) 编辑
 
摘要: <el-table-column prop="remark" label="备注" min-width="200"> <template slot-scope="scope"> <template> <span class="pre">{{ scope.row.remark }}</span> </ 阅读全文
posted @ 2024-08-19 10:04 LeeToLee 阅读(2) 评论(0) 推荐(0) 编辑

2024年8月15日

摘要: // 初始化 let socketUrl = "ws://127.0.0.1/notification/1920102920123232"; // 也有加密的协议 let socketUrl = "wss://127.0.0.1/notification/1920102920123232"; let 阅读全文
posted @ 2024-08-15 16:35 LeeToLee 阅读(1) 评论(0) 推荐(0) 编辑

2024年8月6日

摘要: 解决方案 添加样式即可`style="white-space:pre;"` <el-table-column prop="xxx" label="abc" align="center" min-width="150" show-overflow-tooltip> <template slot-sco 阅读全文
posted @ 2024-08-06 11:51 LeeToLee 阅读(5) 评论(0) 推荐(0) 编辑

2024年7月19日

摘要: 使用window.open()打开新页面预览文件,父子页面均卡死,查资料找到解决方案: window.open(url,"_blank","noopener"); 加第三个参数“noopener” 参考: https://blog.csdn.net/wuyulkl/article/details/1 阅读全文
posted @ 2024-07-19 10:13 LeeToLee 阅读(2) 评论(0) 推荐(0) 编辑

2024年7月18日

摘要: <template> <el-tree :data="data" show-checkbox node-key="id" ref="tree" @node-click="handleNodeClick" > </el-tree> </template> <script> export default 阅读全文
posted @ 2024-07-18 10:16 LeeToLee 阅读(7) 评论(0) 推荐(0) 编辑

2024年3月26日

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

2024年3月14日

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