From c98ddf8de6d548d4a9fdcd3fbdaf70f432067af6 Mon Sep 17 00:00:00 2001 From: qianlishi <1432731663@qq.com> Date: Mon, 16 Aug 2021 13:41:13 +0800 Subject: [PATCH] =?UTF-8?q?login=20=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report-ui/src/utils/request.js | 2 +- report-ui/src/views/login.vue | 279 +++++++++++++++++---------------- 2 files changed, 144 insertions(+), 137 deletions(-) diff --git a/report-ui/src/utils/request.js b/report-ui/src/utils/request.js index 98fd24bc..77453695 100644 --- a/report-ui/src/utils/request.js +++ b/report-ui/src/utils/request.js @@ -49,7 +49,7 @@ service.interceptors.response.use( type: 'error', duration: 5 * 1000 }) - return Promise.reject('error') + return response.data } else { return response.data } diff --git a/report-ui/src/views/login.vue b/report-ui/src/views/login.vue index 56814d20..1f3e802a 100644 --- a/report-ui/src/views/login.vue +++ b/report-ui/src/views/login.vue @@ -8,20 +8,19 @@
用户名
密码
- -记住密码