From 123ce171d2b8ca97d9f4011a33ce4e5e8d1cc339 Mon Sep 17 00:00:00 2001 From: panlinlin <648540858@qq.com> Date: 星期二, 13 四月 2021 15:08:09 +0800 Subject: [PATCH] 使用数据库用户表代替配置文件 --- web_src/src/components/Login.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web_src/src/components/Login.vue b/web_src/src/components/Login.vue index 2a91886..315293b 100644 --- a/web_src/src/components/Login.vue +++ b/web_src/src/components/Login.vue @@ -61,10 +61,11 @@ //璁剧疆鍦ㄧ櫥褰曠姸鎬� this.isLoging = true; - this.$axios.get("/api/user/login",{ + this.$axios({ + method: 'get', + url:"/api/user/login", params: loginParam - } ) - .then(function (res) { + }).then(function (res) { console.log(JSON.stringify(res)); if (res.data == "success") { that.$cookies.set("session", {"username": that.username}) ; @@ -79,8 +80,7 @@ type: 'error' }); } - }) - .catch(function (error) { + }).catch(function (error) { that.$message.error(error.response.statusText); that.isLoging = false; }); -- Gitblit v1.8.0