Skip to content

Commit

Permalink
Bugfix/database height (#30)
Browse files Browse the repository at this point in the history
* 🎨 优化表格高度计算逻辑

* 🐛 优化API响应错误处理逻辑
  • Loading branch information
HibiKier authored Jan 11, 2025
1 parent 4185e0d commit d6024cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ axios.interceptors.response.use(
return success.data
},
(error) => {
if (!error) {
Message.error({ message: "网络连接好像不通畅哦..." })
return
}
const { status, data } = error.response
if (status == 504 || status == 404) {
Message.error({ message: "服务器被吃了┭┮﹏┭┮" })
Expand Down

0 comments on commit d6024cf

Please sign in to comment.