摘要: 原因是 ESM 中没有全局 __filename,重新定义下它: import path from 'node:path' import { fileURLToPath } from 'node:url'; const __filename = fileURLToPath(import.meta.u 阅读全文
posted @ 2024-03-17 22:24 guangzan 阅读(156) 评论(0) 推荐(0) 编辑