mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(cli): nav back in mobile mode (#5957)
This commit is contained in:
parent
75e832f05a
commit
4dc3c79090
@ -26,7 +26,11 @@ export default {
|
||||
|
||||
methods: {
|
||||
onBack() {
|
||||
history.back();
|
||||
if (history.length > 1) {
|
||||
history.back();
|
||||
} else {
|
||||
this.$router.replace('/');
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user