Master #1
Reference in New Issue
Block a user
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题原因: - 系统 PATH 中有另一个也叫 'vite' 的 Qt GUI 程序 - 优先级高于 npm 的 vite,导致 npm run dev 调用了错误的程序 - 出现 Qt X11 显示相关的错误 解决方案: - 直接使用 node 调用 vite 的完整路径 - 避免依赖 PATH 解析,确保调用正确的 vite 验证: - node node_modules/vite/bin/vite.js --version ✅ vite/5.4.21 linux-x64 node-v23.11.1问题原因: - oui.txt 中的 key 格式为 AABBCC(无冒号,6位十六进制) - 代码中提取的 oui = mac[:8] 是 AA:BB:CC(带冒号,8字符) - db.get(oui) 永远匹配不到,且回退的遍历逻辑在4万条字典上 每次查都全扫描,性能极差 解决方案: - 提取 OUI 后去掉冒号再查询:oui.replace(':', '') - 直接 db.get() 精确匹配,O(1) 时间复杂度View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.