mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-06-20 02:38:15 +08:00
chore: 🔨 httpRequest 忽略错误
This commit is contained in:
@ -118,6 +118,7 @@ axios.interceptors.response.use(
|
|||||||
return response
|
return response
|
||||||
},
|
},
|
||||||
async (error) => {
|
async (error) => {
|
||||||
|
if (error.config.ignoreError) return Promise.reject(error.response)
|
||||||
if (error.response) {
|
if (error.response) {
|
||||||
if (error.response.status === 404) {
|
if (error.response.status === 404) {
|
||||||
ElNotification.error({
|
ElNotification.error({
|
||||||
|
Reference in New Issue
Block a user