This commit is contained in:
2026-07-27 17:19:36 +08:00
parent e50d1b8fda
commit 1c7532e0de
132 changed files with 7066 additions and 1241 deletions

View File

@@ -1,6 +1,10 @@
import { setStore, getStore, removeStore } from 'utils/store';
import website from '@/config/website';
const DEFAULT_PRIMARY_COLOR = '#409eff';
const LEGACY_PRIMARY_COLORS = ['#2C77F1', '#5C9DF8'];
const storedColorName = getStore({ name: 'colorName' });
const common = {
state: {
language: getStore({ name: 'language' }) || 'zh-cn',
@@ -10,7 +14,10 @@ const common = {
isSearch: false,
isRefresh: true,
isLock: getStore({ name: 'isLock' }),
colorName: getStore({ name: 'colorName' }) || '#2C77F1',
colorName:
!storedColorName || LEGACY_PRIMARY_COLORS.includes(String(storedColorName).toUpperCase())
? DEFAULT_PRIMARY_COLOR
: storedColorName,
themeName: getStore({ name: 'themeName' }) || 'theme-go',
lockPasswd: getStore({ name: 'lockPasswd' }) || '',
website: website,