|
|
|
@ -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()); |
|
|
|
}; |
|
|
|
|
|
|
|
/* |
|
|
|
|