Skip to content

Commit bc3efa3

Browse files
committed
In order to avoid linter errors, use Vue.prototype.
1 parent 400d580 commit bc3efa3

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

generator/templates/simple/src/App.vue

Lines changed: 2 additions & 2 deletions
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) : this.$navigator.navigate(route);
90+
VUE_APP_MODE === 'web' ? this.$router.push(route) : Vue.prototype.$navigator.navigate(route);
9191
}
9292
<%_ } _%>
9393
}
@@ -132,7 +132,7 @@
132132
}
133133

134134
public goTo(route) {
135-
VUE_APP_MODE === 'web' ? this.$router.push(route) : this.$navigator.navigate(route);
135+
VUE_APP_MODE === 'web' ? this.$router.push(route) : Vue.prototype.$navigator.navigate(route);
136136
}
137137
<%_ } _%>
138138
}

0 commit comments

Comments
 (0)