vite.config.ts
@@ -47,18 +47,6 @@ // 是否开启 https https: false, }, proxy: { '/api1': { // 后台地址 target: 'http://127.0.0.1:3131/', changeOrigin: true, }, '/api2': { // 后台地址 target: 'http://127.0.0.1:3132/', changeOrigin: true, } }, resolve:{ alias: { '@': pathResolve('./src'), // 设置 `@` 指向 `src` 目录