多分動く

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,25 +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) {
bannerUrl.value = bannerDark;
iconUrl.value = iconDark;
} else {
bannerUrl.value = bannerLight;
iconUrl.value = iconLight;
}
if (darkMode.value && gamingMode.value == true) {
gamingType.value = 'dark';
} else if (!darkMode.value && gamingMode.value == true) {
gamingType.value = 'light';
} else {
gamingType.value = '';
}
watch([darkMode,gamingMode], () => {
if (darkMode.value) { if (darkMode.value) {
bannerUrl.value = bannerDark; bannerUrl.value = bannerDark;
@ -152,6 +134,25 @@ watch([darkMode,gamingMode], () => {
} else { } else {
gamingType.value = ''; gamingType.value = '';
} }
watch([darkMode,gamingMode], () => {
if (darkMode.value) {
bannerUrl.value = enablehanntenn ? bannerLight : bannerDark;
iconUrl.value = enablehanntenn ? bannerLight : bannerDark;
} else {
bannerUrl.value = enablehanntenn ? bannerDark : bannerLight;
iconUrl.value = enablehanntenn ? bannerDark : bannerLight;
}
if (darkMode.value && gamingMode.value) {
gamingType.value = 'dark';
} else if (!darkMode.value && gamingMode.value) {
gamingType.value = 'light';
} else {
gamingType.value = '';
}
}) })
const menu = computed(() => defaultStore.state.menu); const menu = computed(() => defaultStore.state.menu);