king
2020-10-21 0b733984acbbc018511fba1ce3ce913d71639f64
config/index.js
@@ -9,13 +9,15 @@
    // Paths
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',
    // api 只代理接口,不加时会重定向页面路径
    proxyTable: {
      '/': {
      '/webapi': {
        target: 'http://minkesoft.com/',
        changeOrigin: true,
        pathRewrite: {
          '^/': ''
        }
        ws: true,
        // pathRewrite: {
        //   '^/api': ''
        // }
      }
    },
@@ -49,7 +51,7 @@
    // Paths
    assetsRoot: path.resolve(__dirname, '../dist'),
    assetsSubDirectory: 'static',
    assetsPublicPath: './',
    assetsPublicPath: '/',
    /**
     * Source Maps