From cb5849d8a14f55241c44bdf6724b18de7950564d Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: 星期三, 14 四月 2021 16:33:10 +0800 Subject: [PATCH] 支持接口鉴权,支持修改密码, --- web_src/src/components/Login.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web_src/src/components/Login.vue b/web_src/src/components/Login.vue index 5e75867..65c27f6 100644 --- a/web_src/src/components/Login.vue +++ b/web_src/src/components/Login.vue @@ -62,9 +62,9 @@ this.isLoging = true; this.$axios({ - method: 'get', - url:"/api/user/login", - params: loginParam + method: 'get', + url:"/api/user/login", + params: loginParam }).then(function (res) { console.log(JSON.stringify(res)); if (res.data == "success") { @@ -81,7 +81,7 @@ }); } }).catch(function (error) { - that.$message.error(error.response.statusText); + that.$message.error(error.response.data.msg); that.isLoging = false; }); }, -- Gitblit v1.8.0