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