1.vite.config.js中报错 vite.defineConfig is not a function
起因:vite版本太低了,重新安装一波

 npm init vite   我的项目名