chenyc
2023-09-08 f6d62eaf70440d3183cad494d08a9e8c96c3d9d8
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` 目录