fix the dark mode not take effect in mobile photo browser

This commit is contained in:
MaysWind
2025-01-11 18:06:55 +08:00
parent c73dcb51e4
commit c0ab1ad793
+3 -2
View File
@@ -431,6 +431,7 @@
<script> <script>
import { mapStores } from 'pinia'; import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/setting.ts'; import { useSettingsStore } from '@/stores/setting.ts';
import { useEnvironmentsStore } from '@/stores/environment.ts';
import { useUserStore } from '@/stores/user.ts'; import { useUserStore } from '@/stores/user.ts';
import { useAccountsStore } from '@/stores/account.js'; import { useAccountsStore } from '@/stores/account.js';
import { useTransactionCategoriesStore } from '@/stores/transactionCategory.js'; import { useTransactionCategoriesStore } from '@/stores/transactionCategory.js';
@@ -512,9 +513,9 @@ export default {
}; };
}, },
computed: { computed: {
...mapStores(useSettingsStore, useUserStore, useAccountsStore, useTransactionCategoriesStore, useTransactionTagsStore, useTransactionsStore, useTransactionTemplatesStore, useExchangeRatesStore), ...mapStores(useSettingsStore, useEnvironmentsStore, useUserStore, useAccountsStore, useTransactionCategoriesStore, useTransactionTagsStore, useTransactionsStore, useTransactionTemplatesStore, useExchangeRatesStore),
isDarkMode() { isDarkMode() {
return this.$root.isDarkMode; return this.environmentsStore.framework7DarkMode;
}, },
title() { title() {
if (this.type === 'transaction') { if (this.type === 'transaction') {