Add create tool page

This commit is contained in:
2024-01-26 14:29:53 +08:00
parent 37fcfecbb7
commit 5fb4cfe55d
7 changed files with 240 additions and 51 deletions

View File

@@ -109,11 +109,18 @@ service.interceptors.response.use(
return response
},
async (error: AxiosError) => {
void message.error(
<>
<strong></strong>
</>
)
if (
error.code === 'ETIMEDOUT' ||
(error.code === 'ECONNABORTED' && error.message.includes('timeout'))
) {
void message.error('请求超时,请稍后重试')
} else {
void message.error(
<>
<strong></strong>
</>
)
}
return await Promise.reject(error?.response?.data)
}
)