From a909f6c00db4c8d121a2ccbb0cd67ad5e4ba121c Mon Sep 17 00:00:00 2001 From: xream Date: Sun, 21 Jan 2024 02:16:25 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=BF=BD=E7=95=A5=20GitHub=20API=20?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/api/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c64647edf..fc6fe3c91 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sub-store-front-end", - "version": "2.14.94", + "version": "2.14.95", "private": true, "scripts": { "dev": "vite --host", diff --git a/src/api/index.ts b/src/api/index.ts index 7e81f14f0..d37a9b6a7 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -22,10 +22,10 @@ service.interceptors.response.use( return Promise.resolve(response); }, (e: AxiosError): AxiosPromise => { - // console.log('eeeeeeeee', e.response); + // console.log(e.config.url); // 流量信息接口的报错,不通知,直接返回 - if (e.config.url.startsWith('/api/sub/flow')) + if (e.config.url.startsWith('/api/sub/flow') || e.config.url.startsWith('https://api.github.com/')) return Promise.resolve(e.response); if (appNotifyStore) {