mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
fix: same text search on enter will cause error
This commit is contained in:
parent
bd0a99c46d
commit
53428dd6da
1 changed files with 2 additions and 1 deletions
|
|
@ -70,7 +70,8 @@ export default {
|
||||||
else this.$router.go(1);
|
else this.$router.go(1);
|
||||||
},
|
},
|
||||||
goToSearchPage() {
|
goToSearchPage() {
|
||||||
if(!this.keywords) return;
|
if (!this.keywords) return;
|
||||||
|
if (this.$route.name === 'search' && this.$route.query.keywords === this.keywords) return;
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: "search",
|
name: "search",
|
||||||
query: { keywords: this.keywords },
|
query: { keywords: this.keywords },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue