panlinlin
2021-04-14 cb5849d8a14f55241c44bdf6724b18de7950564d
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,9 +80,8 @@
                  type: 'error'
              });
          }
      })
      .catch(function (error) {
        that.$message.error(error.response.statusText);
      }).catch(function (error) {
        that.$message.error(error.response.data.msg);
        that.isLoging = false;
      });
    },