diff --git a/src/utils/index.ts b/src/utils/index.ts
index 561570a..4ab6208 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -34,7 +34,8 @@ request.interceptors.response.use(
(response) => {
// 假设后端返回格式为 { code: 200, data: ..., message: '' }
const { code, data, message } = response.data;
- if (code === 200) {
+ console.log('请求成功:', data);
+ if (code === 1) {
return data;
} else {
// 可抛出业务错误
diff --git a/src/views/login/component/account.vue b/src/views/login/component/account.vue
index bfa2cb1..a87a494 100644
--- a/src/views/login/component/account.vue
+++ b/src/views/login/component/account.vue
@@ -1,29 +1,16 @@
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
+
+
+
-
-
-
登 录
@@ -33,66 +20,66 @@
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 2248814..fde78c5 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -11,7 +11,7 @@
- Tab 2
+ Tab 2