mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 22:11: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
|
@observer
|
||||||
class Rules extends React.Component<RulesProps, {}> {
|
class Rules extends React.Component<RulesProps, {}> {
|
||||||
|
|
||||||
async componentWillMount () {
|
componentWillMount () {
|
||||||
await this.props.store.fetchData()
|
this.props.store.fetchData()
|
||||||
}
|
}
|
||||||
|
|
||||||
renderRuleItem = ({ index, key, style }) => {
|
renderRuleItem = ({ index, key, style }) => {
|
||||||
@ -39,7 +39,7 @@ class Rules extends React.Component<RulesProps, {}> {
|
|||||||
|
|
||||||
render () {
|
render () {
|
||||||
const { t } = this.props
|
const { t } = this.props
|
||||||
const { rules } = this.props.store.config
|
const { rules } = this.props.store.data
|
||||||
return (
|
return (
|
||||||
<div className="page">
|
<div className="page">
|
||||||
<Header title={t('title')} />
|
<Header title={t('title')} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user