routing smoothness

This commit is contained in:
Front 2022-03-15 20:34:34 -04:00
parent 457a5be125
commit 823b98442d
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ export default {
},
youtubeSearch(item) {
location.href="/search?q="+item[0];
this.$router.push(`/search?q=${item[0]}`);
}
}
}

View File

@ -11,7 +11,7 @@
<script>
export default {
mounted() {
location.href = `/${localStorage.getItem("startPage") || "home"}`
this.$router.push(`/${localStorage.getItem("startPage") || "home"}`)
}
}
</script>