mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 23:55:08 +00:00
fix(cli): nav back in mobile mode (#5957)
This commit is contained in:
@@ -26,7 +26,11 @@ export default {
|
||||
|
||||
methods: {
|
||||
onBack() {
|
||||
history.back();
|
||||
if (history.length > 1) {
|
||||
history.back();
|
||||
} else {
|
||||
this.$router.replace('/');
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user