Browse Source

lint

pull/4289/head
hz 7 years ago
parent
commit
c744d2ae2b
  1. 3
      src/models/setting.ts

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

Loading…
Cancel
Save