yxl
2025-01-03 8ca7f7c74de140b79ea7dd821ca0236b11ce7551
vue.config.js
@@ -6,7 +6,25 @@
  devServer: {
    host: "0.0.0.0", //指定要使用的 host
    port: 12315, //指定端口号以侦听
    hotOnly: false //启用热模块替换,而无需页面刷新作为构建失败时的回退。
    hotOnly: false, //启用热模块替换,而无需页面刷新作为构建失败时的回退。
    open: true,
    proxy: {
      "/dev-api": {
        target: 'http://103.135.160.14:7800',
        // target: 'http://103.135.160.14:7777',
        changeOrigin: true,
        pathRewrite: {
          '^/dev-api': ''
        }
      },
      "/data-api": {
        target: 'https://cim.smartearth.cn',
        changeOrigin: true,
        pathRewrite: {
          '^/data-api': ''
        }
      },
    },
  },