zhangxiaoxu123456
2022-04-18 7eb2e8285782e586659f896a3fdbeec7ecfcca8b
src/libs/axios.js
@@ -18,7 +18,7 @@
})
axios.interceptors.response.use(config => {
  console.log(config,'config---config')
  // console.log(config,'config---config')
  const status = Number(config.status)
  const message = config.data.error
  if( status !== 200) {
@@ -27,7 +27,7 @@
  }
  return config
},(error) => {
  console.log(error,'error')
  // console.log(error,'error')
  const { status, data } = error.response
  const { error : message } = data
  if(status === 503) {