我在nodejs中有以下路由
这是users.js路由
router.post('/users/login', function(request, response) {
// let user login here and do all of the logic.
// Once done then redirect user to dashboard in dashboard.js file
response.redirect('/dashboard');
});
这是dashboard.js路由
router.get('
在提交表单时,我想要重定向到另一个页面。我的文件是这样的: Main.js import Home from '../Home'
import Results from "../Results";
class Main extends Component {
render() {
return (
<Router>
<Switch>
<Route path="/" component={