liu
4 天以前 2b695bfabdceccb0ee19c12c8e655bd7f47a6e2f
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);
    }