This commit is contained in:
Nguyễn Hải Dũng 2022-12-16 16:23:54 +07:00
parent 38c45957b8
commit fa61fafd7c

View File

@ -47,9 +47,16 @@ class ReactRouter extends Component {
: :
'' ''
} }
<> {
<Route path={'/auth/:token?'} render={(props) => <AutoLogin {...props} />} /> this.state.dataRole?.indexOf('search:view') !== -1
</> ?
<>
<Route path={'/auth/:token?'} render={(props) => <AutoLogin {...props} />} />
</>
:
''
}
{ {
this.state.dataRole?.indexOf('search:view') !== -1 this.state.dataRole?.indexOf('search:view') !== -1
? ?