fix: some style bugs

* i18n: change the naming convention of keys
* refactor(BewSelect):  using composition api
This commit is contained in:
Hakadao
2023-03-22 02:10:26 +08:00
parent d4b5b5295d
commit d5daa2a74d
8 changed files with 56 additions and 58 deletions

View File

@@ -334,6 +334,8 @@ function getPopularAnimeList() {
aspect="12/16"
transition="all duration-300"
bg="cover center"
relative
z-1
:style="{
backgroundImage: `url(${removeHttpFromUrl(
item.cover,
@@ -350,7 +352,6 @@ function getPopularAnimeList() {
transition="all duration-1000"
bg="cover center"
pos="absolute top-0 left-0"
z--1
:style="{
backgroundImage: `url(${removeHttpFromUrl(
item.hover.img,

View File

@@ -37,7 +37,9 @@ const mainApp = ref<HTMLElement>()
watch(
() => activatedPage.value,
(newValue, oldValue) => {
window.scrollTo({ top: 0, behavior: 'smooth' })
setTimeout(() => {
window.scrollTo(0, 0)
}, 500)
},
)