多分動く

This commit is contained in:
mattyatea 2023-10-28 06:12:35 +09:00
parent 7242b195ab
commit f4bc2e8291
1 changed files with 8 additions and 7 deletions

View File

@ -117,7 +117,7 @@ let gamingType = computed(defaultStore.makeGetterSetter('gamingType'));
const gamingMode = computed(defaultStore.makeGetterSetter('gamingMode')); const gamingMode = computed(defaultStore.makeGetterSetter('gamingMode'));
const darkMode = computed(defaultStore.makeGetterSetter('darkMode')); const darkMode = computed(defaultStore.makeGetterSetter('darkMode'));
const enablehanntenn = computed(defaultStore.makeGetterSetter('enablehanntenn'));
if (darkMode.value) { if (darkMode.value) {
bannerUrl.value = bannerDark; bannerUrl.value = bannerDark;
@ -127,9 +127,9 @@ if (darkMode.value) {
iconUrl.value = iconLight; iconUrl.value = iconLight;
} }
if (darkMode.value && gamingMode.value == true) { if (darkMode.value && gamingMode.value) {
gamingType.value = 'dark'; gamingType.value = 'dark';
} else if (!darkMode.value && gamingMode.value == true) { } else if (!darkMode.value && gamingMode.value) {
gamingType.value = 'light'; gamingType.value = 'light';
} else { } else {
gamingType.value = ''; gamingType.value = '';
@ -138,11 +138,11 @@ if (darkMode.value && gamingMode.value == true) {
watch([darkMode,gamingMode], () => { watch([darkMode,gamingMode], () => {
if (darkMode.value) { if (darkMode.value) {
bannerUrl.value = bannerDark; bannerUrl.value = enablehanntenn ? bannerLight : bannerDark;
iconUrl.value = iconDark; iconUrl.value = enablehanntenn ? bannerLight : bannerDark;
} else { } else {
bannerUrl.value = bannerLight; bannerUrl.value = enablehanntenn ? bannerDark : bannerLight;
iconUrl.value = iconLight; iconUrl.value = enablehanntenn ? bannerDark : bannerLight;
} }
if (darkMode.value && gamingMode.value) { if (darkMode.value && gamingMode.value) {
@ -152,6 +152,7 @@ watch([darkMode,gamingMode], () => {
} else { } else {
gamingType.value = ''; gamingType.value = '';
} }
}) })
const menu = computed(() => defaultStore.state.menu); const menu = computed(() => defaultStore.state.menu);