fix: use a relative url with router-link

Fixes: #1194
This commit is contained in:
Ikkibird 2022-07-11 04:34:46 +00:00 committed by GitHub
parent dce401348d
commit 227567326e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ export default {
toggleListenUrl(_this) {
const url = new URL(window.location.href);
url.searchParams.set("listen", _this.isListening ? "0" : "1");
return url.href;
return url.pathname + url.search;
},
isEmbed(_this) {
return String(_this.$route.path).indexOf("/embed/") == 0;