From 154dd54887996306056bd0f311da84546620e233 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Sat, 28 Oct 2023 15:59:10 +0900 Subject: [PATCH] fix --- .../frontend/src/components/MkMention.vue | 2 +- packages/frontend/src/components/MkRange.vue | 28 ------------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/packages/frontend/src/components/MkMention.vue b/packages/frontend/src/components/MkMention.vue index b2fad5e0bd..6ba2cadc8c 100644 --- a/packages/frontend/src/components/MkMention.vue +++ b/packages/frontend/src/components/MkMention.vue @@ -44,7 +44,7 @@ const avatarUrl = computed(() => defaultStore.state.disableShowingAnimatedImages ? getStaticImageUrl(`/avatar/@${props.username}@${props.host}`) : `/avatar/@${props.username}@${props.host}`, ); -const bgCss = (gaming.value === '') ? bg.toRgbString() : ""; +const bgCss = (gamingType.value === '') ? bg.toRgbString() : ""; //const bgCss = `background:${bg.toRgbString()}; ${result}` ; diff --git a/packages/frontend/src/components/MkRange.vue b/packages/frontend/src/components/MkRange.vue index 2e240c844e..77d2e60e0d 100644 --- a/packages/frontend/src/components/MkRange.vue +++ b/packages/frontend/src/components/MkRange.vue @@ -29,34 +29,6 @@ import {defaultStore} from "@/store.js"; let gamingType = computed(defaultStore.makeGetterSetter('gamingType')); -if (darkMode.value && gamingMode.value == true) { - gaming.value = 'dark'; -} else if (!darkMode.value && gamingMode.value == true) { - gaming.value = 'light'; -} else { - gaming.value = ''; -} - -watch(darkMode, () => { - console.log(gaming) - if (darkMode.value && gamingMode.value == true) { - gaming.value = 'dark'; - } else if (!darkMode.value && gamingMode.value == true) { - gaming.value = 'light'; - } else { - gaming.value = ''; - } -}) - -watch(gamingMode, () => { - if (darkMode.value && gamingMode.value == true) { - gaming.value = 'dark'; - } else if (!darkMode.value && gamingMode.value == true) { - gaming.value = 'light'; - } else { - gaming.value = ''; - } -}) const props = withDefaults(defineProps<{ modelValue: number; disabled?: boolean;