vue.config.js
@@ -4,7 +4,8 @@ module.exports = { //路径前缀 publicPath: "/", publicPath:"/zhny-web", // publicPath: "/", lintOnSave: true, productionSourceMap: false, chainWebpack: (config) => { @@ -45,9 +46,9 @@ proxy: { '/api': { //本地服务接口地址 target: 'http://192.168.0.207:89', target: 'http://127.0.0.1:89', //远程演示服务地址,可用于直接启动项目 // target: 'http://182.106.212.58:8013/api', // target: 'http://182.106.212.58:8020/api', ws: true, pathRewrite: { '^/api': '/'