摘要: 全局执行 pnpm install -g increase-memory-limit 项目中执行 increase-memory-limit 此时报错 解决 修改node_modules下的.bin文件中的所有.cmd文件,将里面的"%_prog%" 去掉双引号 改成 %_prog%。 阅读全文
posted @ 2026-02-04 16:31 ZerlinM 阅读(3) 评论(0) 推荐(0)
摘要: 问题 安装海康威视自带插件VideoWebPlugin.exe后还是不能正常预览视频 1、CORS跨域问题 2、不安全的http协议下无法调用摄像头和麦克风 解决 谷歌浏览器版本 解决步骤 步骤1:谷歌浏览器 打开 chrome://flags 步骤2:搜索 Insecure origins tre 阅读全文
posted @ 2025-12-04 11:17 ZerlinM 阅读(431) 评论(0) 推荐(0)
摘要: 代码如下 const value = form.validateFields(); value.then(resParams => { // 校验通过代码 }).catch(() => { // 在catch中进行错误定位 const errorList = (document as any).qu 阅读全文
posted @ 2025-09-19 13:27 ZerlinM 阅读(18) 评论(0) 推荐(0)
摘要: 代码如下: const css2DObjects = []; const createLabelObj = (idText,) => { let div = document.getElementById(idText); for (var i = 0; i < css2DObjects.lengt 阅读全文
posted @ 2025-01-21 17:35 ZerlinM 阅读(139) 评论(0) 推荐(0)
摘要: ①正视图 camera.position设置为(x,y,z+150) camera.up.x=0 camera.up.y=1 camera.up.z=0 ②背视图 camera.position设置为(x,y,z-150) camera.up.x=0 camera.up.y=1 camera.up. 阅读全文
posted @ 2025-01-16 10:17 ZerlinM 阅读(415) 评论(0) 推荐(0)
摘要: 效果预览 代码 echarts option配置中的series写法如下: series:[ { type: 'custom', coordinateSystem: 'bmap', renderItem: (params, api) => renderPolygon(params, api, gAr 阅读全文
posted @ 2025-01-03 14:26 ZerlinM 阅读(287) 评论(0) 推荐(0)
摘要: 代码如下: import os import pandas as pd def rename_files_based_on_excel(excel_path, folder_path, id_column='id', old_name_column='ori_name', new_name_colu 阅读全文
posted @ 2024-12-23 17:54 ZerlinM 阅读(63) 评论(0) 推荐(0)
摘要: 使用antd Image加载多张图片时,遇到网络之类的问题,导致图片加载失败,希望能重试3次,之后再展示默认图片 代码如下: const retry = {} const handleError = (e, id, url) => { let cur = retry[id] retry[id] = 阅读全文
posted @ 2024-12-18 16:05 ZerlinM 阅读(232) 评论(0) 推荐(0)
摘要: 安装mozjpeg npm install mozjpeg -g 压缩单个文件 命令 mozjpeg -quality 75 -outfile C:\\Users\\xxx\\Downloads\\img\\press\\pump1_1.jpg C:\\Users\\xxx\\Downloads\\ 阅读全文
posted @ 2024-12-18 15:12 ZerlinM 阅读(140) 评论(0) 推荐(1)
摘要: 问题 执行 subprocess.run(command, check=True) 时报错 File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_chi 阅读全文
posted @ 2024-12-18 15:05 ZerlinM 阅读(656) 评论(0) 推荐(0)