小小儁爺
2025-12-01 4cafc2236338b6eaa0d51962b98495f0043e27c1
vue.config.js
@@ -53,7 +53,8 @@
    proxy: {
      [process.env.VUE_APP_BASE_API]: {
        target: 'http://121.196.36.24:8048', // 本地
        // target: 'http://192.168.1.21:9000', // 阿鲁克(新)
        // target: 'http://192.168.21.19:8002', // 阿鲁克(新)
        // target: 'http://192.168.21.19:8003', // 阿鲁克(新)
        changeOrigin: true, // 请求跨域时,需 配置此项
        pathRewrite: { // 路径重写,替换target中的请求地址
          ['^' + process.env.VUE_APP_BASE_API]: '/api/'