diff --git a/src/Config.js b/src/Config.js index f1157e3..16827da 100644 --- a/src/Config.js +++ b/src/Config.js @@ -18,6 +18,7 @@ const DEFAULT_CONFIG={ pressure: false, easter_egg: true, color_scheme: 'default', + fold: true }; export function load_config() { @@ -238,6 +239,10 @@ export class ConfigUI extends PureComponent { description="在某些情况下显示彩蛋" />
新功能建议或问题反馈请在 GitHub diff --git a/src/Flows.js b/src/Flows.js index 3659007..e6e4340 100644 --- a/src/Flows.js +++ b/src/Flows.js @@ -526,7 +526,7 @@ class FlowItemRow extends PureComponent { break; } } - let needFold = (FOLD_TAGS.indexOf(this.state.info.tag) > -1) && (this.props.search_param === '热榜' || !this.props.search_param) + let needFold = (FOLD_TAGS.indexOf(this.state.info.tag) > -1) && (this.props.search_param === '热榜' || !this.props.search_param) && window.config.fold let res=(