晚上路由守护,在router.js

This commit is contained in:
jiayuqi7813
2022-06-29 23:43:22 +08:00
parent bd76fea1ec
commit 2c9b4a7f4f
6 changed files with 47 additions and 18 deletions

View File

@@ -81,7 +81,6 @@ export default {
password:this.loginForm.password
}
}).then(res=>{
console.log(res.data);
if(res.data.code===200){
this.$router.push('/home')
ElNotification({
@@ -149,4 +148,4 @@ export default {
}
</style>
</style>