mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
Fix: rule display
This commit is contained in:
parent
101da80462
commit
e263f66bf7
@ -13,8 +13,8 @@ interface RulesProps extends BaseRouterProps, I18nProps {}
|
||||
@observer
|
||||
class Rules extends React.Component<RulesProps, {}> {
|
||||
|
||||
async componentWillMount () {
|
||||
await this.props.store.fetchData()
|
||||
componentWillMount () {
|
||||
this.props.store.fetchData()
|
||||
}
|
||||
|
||||
renderRuleItem = ({ index, key, style }) => {
|
||||
@ -39,7 +39,7 @@ class Rules extends React.Component<RulesProps, {}> {
|
||||
|
||||
render () {
|
||||
const { t } = this.props
|
||||
const { rules } = this.props.store.config
|
||||
const { rules } = this.props.store.data
|
||||
return (
|
||||
<div className="page">
|
||||
<Header title={t('title')} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user