mirror of https://github.com/VueTubeApp/VueTube
routing smoothness
This commit is contained in:
parent
457a5be125
commit
823b98442d
|
@ -149,7 +149,7 @@ export default {
|
|||
},
|
||||
|
||||
youtubeSearch(item) {
|
||||
location.href="/search?q="+item[0];
|
||||
this.$router.push(`/search?q=${item[0]}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<script>
|
||||
export default {
|
||||
mounted() {
|
||||
location.href = `/${localStorage.getItem("startPage") || "home"}`
|
||||
this.$router.push(`/${localStorage.getItem("startPage") || "home"}`)
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue