diff --git a/src/models/setting.ts b/src/models/setting.ts index 2ba1469ec26ab9c7e04a5afad1ebe019fbe3b459..d0d76da7b31cba322c4053dacb6b1df8ff002ee9 100644 --- a/src/models/setting.ts +++ b/src/models/setting.ts @@ -15,8 +15,7 @@ export interface SettingModelType { const updateTheme = (newPrimaryColor?: string) => { const timeOut = 0; const hideMessage = message.loading('正在切换主题!', timeOut); - themeColorClient.changeColor(newPrimaryColor) - .finally(() => hideMessage()); + themeColorClient.changeColor(newPrimaryColor).finally(() => hideMessage()); }; /*