Open klren0312 opened 2 months ago
import path from 'path' import { fileURLToPath } from 'url' const __dirname = path.dirname(fileURLToPath(import.meta.url)) console.log(path.join(__dirname, '/uploads'))
解决方法