Skip to content

Commit

Permalink
chore: 忽略 GitHub API 报错
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 20, 2024
1 parent b0823e5 commit a909f6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.94",
"version": "2.14.95",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
4 changes: 2 additions & 2 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ service.interceptors.response.use(
return Promise.resolve(response);
},
(e: AxiosError<ErrorResponse>): AxiosPromise<ErrorResponse | undefined> => {
// 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) {
Expand Down

0 comments on commit a909f6c

Please sign in to comment.