fix: 🐛 gay gay homosexual gay

This commit is contained in:
ThatOneCalculator 2022-09-09 13:56:42 -07:00
parent 7ef63a770c
commit 72ee2e3fdc
3 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "calckey", "name": "calckey",
"version": "12.118.1-calc.2-rc.22", "version": "12.118.1-calc.2-rc.23",
"codename": "aqua", "codename": "aqua",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -60,11 +60,12 @@ const props = defineProps<{
}>(); }>();
let featured = $ref('featured'); let featured = $ref('featured');
const tabs = ['featured', 'users', 'search'];
const tab = $computed({ let tab = $computed({
get: () => featured, get: () => featured,
set: (x) => { set: (x) => {
syncSlide(['featured', 'users', 'search'].indexOf(x)); syncSlide(tabs.indexOf(x));
}, },
}); });
@ -113,7 +114,7 @@ function setSwiperRef(swiper) {
} }
function onSlideChange() { function onSlideChange() {
saveSrc(timelines[swiperRef.activeIndex]); tab = tabs[swiperRef.activeIndex];
} }
function syncSlide(index) { function syncSlide(index) {

View File

@ -276,6 +276,7 @@ let swiperRef = null;
function setSwiperRef(swiper) { function setSwiperRef(swiper) {
swiperRef = swiper; swiperRef = swiper;
syncSlide(timelines.indexOf(src));
} }
function onSlideChange() { function onSlideChange() {
@ -286,7 +287,6 @@ function syncSlide(index) {
swiperRef.slideTo(index); swiperRef.slideTo(index);
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>