diff --git a/packages/client/src/pages/gallery/index.vue b/packages/client/src/pages/gallery/index.vue index 45e7bd7ae..b47d8a954 100644 --- a/packages/client/src/pages/gallery/index.vue +++ b/packages/client/src/pages/gallery/index.vue @@ -25,80 +25,88 @@ @slide-change="onSlideChange" > - - - {{ i18n.ts.recentPosts }} + + + + {{ i18n.ts.recentPosts }} + + + + + + + + + {{ i18n.ts.popularPosts }} + + + + + + + + + + - - - - {{ i18n.ts.popularPosts }} + + + + + + + {{ i18n.ts.postToGallery }} + - - - - - - - - - - - - {{ i18n.ts.postToGallery }} - - - - - + @@ -119,6 +127,7 @@ import { useRouter } from "@/router"; import { defaultStore } from "@/store"; import "swiper/scss"; import "swiper/scss/virtual"; +import MkButton from "@/components/MkButton.vue"; const router = useRouter(); @@ -205,11 +214,21 @@ function syncSlide(index) { } onMounted(() => { - syncSlide(tabs.indexOf(swiperRef.activeIndex)); + syncSlide(tabs.indexOf(tab)); }); + +function create() { + router.push("/gallery/new"); +}