From ae57180aa721a37d1f7f7bfc6d91a301aa3069bc Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期三, 08 五月 2024 16:32:55 +0800
Subject: [PATCH] 1
---
src/utils/request.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/utils/request.js b/src/utils/request.js
index ec1904e..8c820d1 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -130,7 +130,7 @@
}).then((response) => {
resolve(response.data);
}).catch((error) => {
- if (error.status == 400) {
+ if (error?.status == 400) {
ElMessage({
message: error.data.msg,
type: 'warning',
--
Gitblit v1.9.3