fix: same text search on enter will cause error (#34)

* feat: add config to resolve path alias.

* feat: use vue-i18n for language switch

* feat: add .editorconfig for ide

* fix: add no-referrer to avoid CROB

* fix: setCookie and fix typo

* feat: integrate vue-i18n

* feat: player component i18n support

* fix: duplicate key warning in explore page

* fix: like songs number changed in library page

* fire: remove todo

* fix: same text search on enter will cause error
This commit is contained in:
Hawtim Zhang 2020-10-22 00:19:54 +08:00 committed by GitHub
parent 36faa33c5f
commit 580ed6b18a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View file

@ -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 },