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) {
|
youtubeSearch(item) {
|
||||||
location.href="/search?q="+item[0];
|
this.$router.push(`/search?q=${item[0]}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
location.href = `/${localStorage.getItem("startPage") || "home"}`
|
this.$router.push(`/${localStorage.getItem("startPage") || "home"}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue