Skip to content

Commit c72b4a6

Browse files
committed
When using JS is simpler to use the standard this.$navigator
1 parent 74f9d20 commit c72b4a6

File tree

1 file changed

+1
-1
lines changed
  • generator/templates/simple/src

1 file changed

+1
-1
lines changed

generator/templates/simple/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
this.goTo('about');
8888
},
8989
goTo(route) {
90-
VUE_APP_MODE === 'web' ? this.$router.push(route) : Vue.prototype.$navigator.navigate(route);
90+
VUE_APP_MODE === 'web' ? this.$router.push(route) : this.$navigator.navigate(route);
9191
}
9292
<%_ } _%>
9393
}

0 commit comments

Comments
 (0)