chore: 新增put请求类型

This commit is contained in:
奔跑的面条
2022-05-28 00:40:22 +08:00
parent 6c91fca4e7
commit fcf8d9d99d
2 changed files with 27 additions and 9 deletions
-2
View File
@@ -28,8 +28,6 @@ axiosInstance.interceptors.response.use(
return Promise.resolve(res.data)
},
(err: AxiosResponse) => {
const { code } = err.data as { code: number }
if (ErrorPageNameMap.get(code)) redirectErrorPage(code)
window['$message'].error('接口异常,请检查!')
Promise.reject(err)
}