feat: update Z.ai app configuration with additional styling and increment store version to 97

This commit is contained in:
kangfenmao 2025-04-19 17:28:23 +08:00
parent 579d7d1e5d
commit 1bb27ee3f9
3 changed files with 6 additions and 9 deletions

View File

@ -399,6 +399,9 @@ export const DEFAULT_MIN_APPS: MinAppType[] = [
name: `Z.ai`, name: `Z.ai`,
logo: ZaiAppLogo, logo: ZaiAppLogo,
url: `https://chat.z.ai/`, url: `https://chat.z.ai/`,
bodered: true bodered: true,
style: {
padding: 10
}
} }
] ]

View File

@ -42,7 +42,7 @@ const persistedReducer = persistReducer(
{ {
key: 'cherry-studio', key: 'cherry-studio',
storage, storage,
version: 96, version: 97,
blacklist: ['runtime', 'messages'], blacklist: ['runtime', 'messages'],
migrate migrate
}, },

View File

@ -1232,13 +1232,7 @@ const migrateConfig = {
'97': (state: RootState) => { '97': (state: RootState) => {
try { try {
addMiniApp(state, 'zai') addMiniApp(state, 'zai')
return state state.settings.webdavMaxBackups = 0
} catch (error) {
return state
}
},
'98': (state: RootState) => {
try {
if (state.websearch && state.websearch.providers) { if (state.websearch && state.websearch.providers) {
state.websearch.providers.forEach((provider) => { state.websearch.providers.forEach((provider) => {
provider.basicAuthUsername = '' provider.basicAuthUsername = ''