From 8555361097d32072c7809ddc11aa87de674439ce Mon Sep 17 00:00:00 2001 From: gooking Date: Tue, 15 May 2018 08:32:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=99=BB=E5=BD=95=E3=80=81?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E3=80=81=E6=89=BE=E5=9B=9E=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 88532229..309e96e2 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -141,8 +141,15 @@ export default { }) return; } - setToken(res.data); - this.$router.push({ path: '/' }) + Message({ + message: '登录成功', + type: 'success', + duration: 1 * 1000, + onClose: () => { + setToken(res.data); + this.$router.push({ path: '/' }) + } + }) }).catch((err) => { console.log(err); this.loading = false