hz 6 лет назад
Родитель
Сommit
c744d2ae2b
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/models/setting.ts

+ 1 - 2
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());
 };
 
 /*