问题:确定有次文件,但使用@引用时报错 解决办法:在vite.config.js文件加上 import path from ‘path’ resolve: { alias: { ‘@’: path.resolve(__dirname, ‘src’) } }