fix: same text search on enter will cause error

master
kunkka 4 years ago
parent bd0a99c46d
commit 53428dd6da

@ -70,7 +70,8 @@ export default {
else this.$router.go(1);
},
goToSearchPage() {
if(!this.keywords) return;
if (!this.keywords) return;
if (this.$route.name === 'search' && this.$route.query.keywords === this.keywords) return;
this.$router.push({
name: "search",
query: { keywords: this.keywords },

Loading…
Cancel
Save