wuyouming666
2023-12-11 7ae7bcc0245afa4d94516feddc2b8bd60e4253c6
CanadaMes-ui/src/views/login/index.vue
@@ -78,6 +78,8 @@
      this.$refs.loginFormRef.validate(async valid => {
        if (!valid) return;
        login(this.loginForm).then(res => {
          document.cookie="Authorizationssss="+this.loginForm.username+"; expires=Thu, 18 Dec 2203 12:00:00 GMT";
          // 设置token
          setToken(res.data.Authorization);
          this.$router.push('/layout')