mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
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:
parent
36faa33c5f
commit
580ed6b18a
3 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue