liu
7 天以前 b88b98425a18603a730720f91178f04d66d891dc
src/packages/@core/preferences/src/preferences.ts
@@ -236,11 +236,13 @@
   * @param updates - 更新的偏好设置
   */
  private handleUpdates(updates: DeepPartial<Preferences>) {
    const { theme, app } = updates;
    const { theme, app, navigation } = updates;
    if (
      theme &&
      (Object.keys(theme).length > 0 || Reflect.has(theme, 'fontSize'))
      (theme &&
        (Object.keys(theme).length > 0 || Reflect.has(theme, 'fontSize'))) ||
      (navigation && Reflect.has(navigation, 'fontSize')) ||
      (app && Reflect.has(app, 'homeFontSize'))
    ) {
      updateCSSVariables(this.state);
    }