Skip to content

Commit

Permalink
feat(login):登录后自动返回上一级路由
Browse files Browse the repository at this point in the history
  • Loading branch information
li1553770945 committed Nov 9, 2024
1 parent e700442 commit 5ee4ca1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const onSubmit = () => {
title: '登录成功',
type: 'success',
})
router.back();
}
}
).catch(
Expand Down

0 comments on commit 5ee4ca1

Please sign in to comment.