From e3a9f8032be483b123aa6fab26ac6921604130ad Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Mon, 12 Jun 2023 09:20:19 +0800 Subject: [PATCH] bug --- examples/router/axios.js | 2 +- project/oms/apps/AppWechatStatistics/AppWechatStatistics.vue | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/router/axios.js b/examples/router/axios.js index 3bf397f3..d02ec70d 100644 --- a/examples/router/axios.js +++ b/examples/router/axios.js @@ -27,7 +27,7 @@ instance.interceptors.request.use(config => { config.baseURL = location.hash.replace(/#url-/, '/') } if (["/omsapi"].includes(config.baseURL)) { - config.url = config.url.replace(/(app|auth|admin|api)\//, "") + config.url = config.url.replace(/(app|auth|admin|api)\//, "api/") } if (["/xsjr", "/tfx"].includes(config.baseURL)) { config.url = config.url.replace(/(app|auth|admin|api)\//, "api/") diff --git a/project/oms/apps/AppWechatStatistics/AppWechatStatistics.vue b/project/oms/apps/AppWechatStatistics/AppWechatStatistics.vue index 3488f785..fca7000d 100644 --- a/project/oms/apps/AppWechatStatistics/AppWechatStatistics.vue +++ b/project/oms/apps/AppWechatStatistics/AppWechatStatistics.vue @@ -184,6 +184,8 @@ if (res.data.length) { this.search.appId = res.data[0].appId + + this.getInfo() } } })