React + dva 2.1

react+dva2.1 version, how to make a front-end route interceptor

function RouterConfig ({history, app}) {
const routes = [

{
  path: "/user",
  models: () => [import("./models/user")],
  component: () => import("./routes/index"),
},
{
  path: "/auth/login",
  models: () => [import("./models/auth")],
  component: () => import("./routes/auth/Login"),
},

]

return (

)
<ConnectedRouter history={history}>
  <App>
    <Switch>
      <Route exact path="/" render={() => (<Redirect to="/index" />)} />
      {
        routes.map(({ path, ...dynamics }, key) => (
          <Route key={key}
                 exact
                 path={path}
                 component={dynamic({
                   app,
                   ...dynamics,
                 })}
          />
        ))
      }
    </Switch>
  </App>
</ConnectedRouter>

)

Feb.28,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c273e3-15d91.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c273e3-15d91.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?