From 41179ea06e694e19b3170c07dbafe1d26f15ff8f Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期三, 21 九月 2022 11:57:01 +0800 Subject: [PATCH] 文件服务器地址 --- src/views/login/index.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index e028946..d33b057 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -107,12 +107,17 @@ const { username, password } = this.loginForm; const that = this; this.$axios - .post("http://42.193.1.25:8082/sccg/admin/login", { + .post("sccg/admin/login", { password, username, }) .then(function (response) { - if (response.data.code === 200) { + if (response.code === 200) { + // 淇濆瓨token + console.log(response); + localStorage.setItem('token',response.data.token); + // 淇濆瓨token + localStorage.setItem('tokenHead',response.data.tokenHead) // 璺宠浆鍒伴椤� that.$router.push("/home"); }else{ @@ -122,7 +127,7 @@ } }) } - console.log(response); + // console.log(response); }) .catch(function (error) { console.log(error); -- Gitblit v1.8.0