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`,
logo: ZaiAppLogo,
url: `https://chat.z.ai/`,
bodered: true
bodered: true,
style: {
padding: 10
}
}
]

View File

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

View File

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