2024年4月15日
摘要: 出问题的原因是 ESM 中没有全局 __filename 所以需要进行定义 解决方法 import path from 'node:path' import { fileURLToPath } from 'node:url'; const __filename = fileURLToPath(imp 阅读全文
posted @ 2024-04-15 12:04 小辉快快成长 阅读(676) 评论(0) 推荐(0)