diff --git a/src/views/home/components/drawpic.vue b/src/views/home/components/drawpic.vue index be68524..d8c2b62 100644 --- a/src/views/home/components/drawpic.vue +++ b/src/views/home/components/drawpic.vue @@ -42,10 +42,7 @@ { window.addEventListener("resize", this.updateImageSize); }); diff --git a/vue.config.js b/vue.config.js index 0090342..7dd9c98 100644 --- a/vue.config.js +++ b/vue.config.js @@ -20,7 +20,8 @@ module.exports = defineConfig({ proxy: { "/img-api": { //表示拦截以/api开头的请求路径 - target: "http://192.168.50.200:88", // + //target: "http://192.168.50.200:88", // + target: "http://192.168.1.190:88", changOrigin: true, //是否开启跨域 pathRewrite: { "^/api": "/img-api", //重写api,把api变成空字符,因为我们真正请求的路径是没有api的