Skip to content

Commit fd2f1a0

Browse files
authored
Replace == with ===, to prevent ESLint warnings
Prevent `eqeqeq` ESLint rule being triggered
1 parent f6923a7 commit fd2f1a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

generator/templates/nvw/src/App.vue

+5-5
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
},
5959
methods: {
6060
goToHomePage() {
61-
VUE_APP_MODE == 'web' ? this.$router.push('/') : this.$navigateTo(Home);
61+
VUE_APP_MODE === 'web' ? this.$router.push('/') : this.$navigateTo(Home);
6262
},
6363
goToAboutPage() {
64-
VUE_APP_MODE == 'web' ? this.$router.push('about') : this.$navigateTo(About);
64+
VUE_APP_MODE === 'web' ? this.$router.push('about') : this.$navigateTo(About);
6565
},
6666
},
6767
};
@@ -100,11 +100,11 @@
100100
private navbarTitle: string = `App.vue`;
101101

102102
private goToHomePage () {
103-
VUE_APP_MODE == 'web' ? this.$router.push('/') : this.$navigateTo(Home);
103+
VUE_APP_MODE === 'web' ? this.$router.push('/') : this.$navigateTo(Home);
104104
};
105105

106106
private goToAboutPage () {
107-
VUE_APP_MODE == 'web' ? this.$router.push('about') : this.$navigateTo(About);
107+
VUE_APP_MODE === 'web' ? this.$router.push('about') : this.$navigateTo(About);
108108
};
109109
}
110110

@@ -203,4 +203,4 @@
203203
<style native>
204204
@import '~styles/style-one';
205205
</style>
206-
<%_ } _%>
206+
<%_ } _%>

0 commit comments

Comments
 (0)