From bebe546827afae3fe92faf5debb8626674222ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=BF=94=E5=AE=87-=E6=97=85=E7=AE=A1=E5=AE=B6?= <153298343@qq.com> Date: Fri, 26 Aug 2022 15:34:50 +0800 Subject: [PATCH] up --- manifest.json | 5 +++-- pages/index/index.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 999745d..4a78b30 100644 --- a/manifest.json +++ b/manifest.json @@ -74,10 +74,11 @@ "port" : 8081, //端口号 "disableHostCheck" : true, "proxy": { - "": { + "/abs": { "target":"http://czga.langye.net/e/extend/api/index.php", "changeOrigin": true,//是否跨域 - "secure": false + "secure": false, + "pathRewrite":{"^/api":"/"} } } }, diff --git a/pages/index/index.vue b/pages/index/index.vue index d8786bf..fb8c6cd 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -187,7 +187,7 @@ // } // }); uni.request({ - url: '?action=list&classid='+id+'&page_size=10&page=1&ispic=1', + url: '/abs?action=list&classid='+id+'&page_size=10&page=1&ispic=1', method: "GET", data: { },