From a299f72a7e49afb0116565fecb758c0eea7bc2a6 Mon Sep 17 00:00:00 2001 From: vee Date: Thu, 25 Aug 2022 16:05:22 +0800 Subject: [PATCH] =?UTF-8?q?api=E9=85=8D=E7=BD=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 30 ++++++++++++++++++++++++++++++ pages/home/index.vue | 6 ++++++ utils/axios.js | 40 ++++++++++++++++++++++------------------ utils/constant.js | 6 +++++- 4 files changed, 63 insertions(+), 19 deletions(-) diff --git a/manifest.json b/manifest.json index f3cc131..a999c4c 100644 --- a/manifest.json +++ b/manifest.json @@ -46,6 +46,36 @@ "sdkConfigs" : {} } }, + "h5" : { + "publicPath" : "/", + "devServer" : { + // "port" : 8083, + "disableHostCheck" : true, + "https" : true, + "proxy" : { + "/api" : { + "ws" : false, + "target" : "https://sapi.payairs.com", + "changeOrigin" : true, + "secure" : false, + "pathRewrite" : { + "^/api" : "" + } + }, + "/market" : { + "ws" : false, + "target" : "https://market.acefinex.com", + "changeOrigin" : true, + "secure" : false, + "pathRewrite" : { + "^/market" : "" + } + } + }, + "port" : "" + } + + }, /* 快应用特有相关 */ "quickapp" : {}, /* 小程序特有相关 */ diff --git a/pages/home/index.vue b/pages/home/index.vue index 09b3459..d874e9a 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -89,6 +89,7 @@ Blame