zhangxiaoxu123
2022-09-14 77536cfa95b1e3c5e60f94dce3a53aa2e93f121a
config/index.js
@@ -3,6 +3,8 @@
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require("path");
// let url = 'http://192.168.0.140:8081'
let url = 'http://39.96.92.240:9090'
module.exports = {
  dev: {
@@ -10,11 +12,11 @@
    assetsSubDirectory: "static", // 编译输出的二级目录
    assetsPublicPath: "/", // 编译发布的根目录,可配置为资源服务器域名或 CDN 域名
    proxyTable: {
      "/api": {
        target: "",
      "/": {
        target: url,
        changeOrigin: true,
        pathRewrite: {
          "^/api": ""
          "^/": ""
        }
      }
    },