vite配置代理proxy实现跨域问题

hykeda2年前2995
最近在开发vite+vue项目时,调用接口获取服务器数据时提示接口有跨域问题,解决办法是配置代理:export default defineConfig({  //配置代理  se...