src/views/login/index.vue
@@ -125,6 +125,7 @@ }) .then(function (response) { if (response.code === 200) { // 设置toke时间 // 保存token console.log(response); sessionStorage.setItem('token',response.data.token); @@ -135,7 +136,10 @@ }else{ that.$refs.loginForm.validate((valid)=>{ if(valid){ that.$message.error(response.data.message); that.$message({ type:'warning', message:response.message }) } }) }