mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-25 10:19:06 +01:00
fix
This commit is contained in:
parent
f240d181fc
commit
94656adba5
1 changed files with 5 additions and 8 deletions
|
@ -91,7 +91,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, computed, onMounted } from 'vue';
|
import { ref, computed, onMounted, watch } from 'vue';
|
||||||
import { Virtual } from 'swiper';
|
import { Virtual } from 'swiper';
|
||||||
import { Swiper, SwiperSlide } from 'swiper/vue';
|
import { Swiper, SwiperSlide } from 'swiper/vue';
|
||||||
import XEmojis from './about.emojis.vue';
|
import XEmojis from './about.emojis.vue';
|
||||||
|
@ -120,13 +120,10 @@ const props = withDefaults(defineProps<{
|
||||||
});
|
});
|
||||||
|
|
||||||
let stats = $ref(null);
|
let stats = $ref(null);
|
||||||
let tabs = ['overview', 'emojis','charts'];
|
let tabs = ['overview', 'emojis', 'charts'];
|
||||||
let tab = $computed({
|
let tab = $ref(tabs[0]);
|
||||||
get: () => props.initialTab,
|
watch($$(tab), () => (syncSlide(tabs.indexOf(tab))));
|
||||||
set: (x) => {
|
|
||||||
syncSlide(tabs.indexOf(x));
|
|
||||||
},
|
|
||||||
});
|
|
||||||
if (iAmModerator) tabs.push('federation');
|
if (iAmModerator) tabs.push('federation');
|
||||||
|
|
||||||
const initStats = () => os.api('stats', {
|
const initStats = () => os.api('stats', {
|
||||||
|
|
Loading…
Reference in a new issue