chenyc
2023-11-27 e9ef9bfe411bda655f6231f3213cb09039b9dbb7
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` 目录