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')