hz 6 년 전
부모
커밋
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());
 };
 
 /*