ZengTao
2024-01-18 ea46f28356e2acb3bc7cc69b9af3c52fab38c0b0
CanadaMes-ui/src/views/login/index.vue
@@ -78,10 +78,12 @@
      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')
          this.$message.success('登录成功');
          this.$message.success(this.$t('loginSuccess'));
        });
      })
    },