Skip to content

Commit bb32c95

Browse files
tknsnail
authored andcommitted
chore: 🔨 httpRequest 忽略错误
1 parent fe31bf0 commit bb32c95

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/frontend/admin/src/utils/request.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ axios.interceptors.response.use(
118118
return response
119119
},
120120
async (error) => {
121+
if (error.config.ignoreError) return Promise.reject(error.response)
121122
if (error.response) {
122123
if (error.response.status === 404) {
123124
ElNotification.error({

0 commit comments

Comments
 (0)