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; });