From 0d2b85e709993bb5af84a9126bc7c06a745dd4bb Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Wed, 27 Dec 2023 16:55:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/components/drawpic.vue | 16 ++++++++++++---- vue.config.js | 3 ++- 2 files changed, 14 insertions(+), 5 deletions(-) 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的