Merge branch 'feature/TKA-29-' of gitea.beetai.com:huyt/fsi_project into feature/TKA-29-

This commit is contained in:
bi 2022-12-16 16:30:44 +07:00
commit 39e09df490
2 changed files with 3 additions and 3 deletions

View File

@ -16,6 +16,7 @@ import { Provider } from 'react-redux';
import store from './store';
import ReactRouter from './router/ReactRouter';
import { BrowserRouter as Router, Link, Route, Switch } from 'react-router-dom';
import AutoLogin from 'components/AutoLogin/AutoLogin';
@ -26,6 +27,7 @@ function App() {
<Switch>
{/* <Route path={"/login"} exact render={() => <Login />} /> */}
<Route path={"/login"} exact render={() => <Login />} />
<Route path={'/auth/:token?'} render={(props) => <AutoLogin {...props} />} />
<ReactRouter />
</Switch>
</Router>

View File

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