Skip to content

Commit

Permalink
完善页面路由
Browse files Browse the repository at this point in the history
  • Loading branch information
suvvm committed Nov 19, 2019
1 parent 390a46f commit 948ca11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
var userInfo = JSON.parse(res);
this.$cookies.set("userInfo", userInfo, 60 * 60 * 24 * 7);
this.$toast.success('登录成功');
this.$router.push({
path: '/pages/user/user',
})
}
console.log(res)
}).catch(err => {
Expand Down
3 changes: 3 additions & 0 deletions pages/loginFV/loginFV.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
if(faceInfo.confidence >= 80) { // 相似度大于80%判定为同一人
this.$cookies.set("userInfo", userInfo, 60 * 60 * 24 * 7);
this.$toast.success('登录成功');
this.$router.push({
path: '/pages/user/user',
});
} else {
this.$toast.fail('非本人');
}
Expand Down
3 changes: 3 additions & 0 deletions pages/register/rergisterCompany.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
this.$toast.clear();
this.$cookies.set("userInfo", this.userInfo, 60 * 60 * 24 * 7);
this.$toast.success('提交成功');
this.$router.push({
path: '/pages/user/user',
});
console.log(res)
}).catch(err => {
this.$toast.clear();
Expand Down

0 comments on commit 948ca11

Please sign in to comment.