我有问题,在它起作用但突然停止之前,我有菜单,当我单击链接更改但页面没有时,如果我刷新页面(f5)可以工作,这就是我的漫游器和菜单- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- -------------:
class TestFeature(unittest.TestCase):
@classmethod
def setUpClass(cls, source1, source2):
# lease resources
@classmethod
def tearDownClass(cls):
# drop leases
@parameterized.expand(...)
def test_feature(self, params):
...
} }
导出默认的Usuario;
// ------------------菜单
import React from 'react';
import { Switch, Route } from 'react-router-dom';
import asyncComponent from '../../helpers/AsyncFunc';
import getDevRouters from '../../customApp/router';
import Ini from './ini';
import UsuarioCadastro from '../Cadastro/Usuario'
import Email from '../Email';
import Favoritos from '../Favoritos';
class Usuario extends React.Component {
render() {
const { url } = this.props;
const { propss } = this.props;
return (
<Switch>
<Route
exact
path={`${url}/cadastro`}
component={UsuarioCadastro}
/>
<Route
exact
path={`${url}/email`}
component={Email}
/>
<Route
exact
path={`${url}/favoritos`}
component={Favoritos}
/>
<Route
exact
path={`${url}`}
component={Email}
/>
</Switch>
);
} }