fix(cli): failed to watch route change

This commit is contained in:
chenjiahan
2020-08-22 17:07:38 +08:00
parent 19b531b9ee
commit 0761e36813
3 changed files with 6 additions and 7 deletions

View File

@@ -51,8 +51,7 @@ export default {
},
watch: {
// eslint-disable-next-line object-shorthand
'$route.path'() {
$route() {
this.setNav();
},
},