Hi All,
I am redirecting the URL after login but facing some issue.
Here is my code
Login page (path: main/src/page/login.jsx)
Router (path: main/js/router.js)
Login page
<ListButton fill round color="white" className="btn" onClick={this.signIn.bind(this)}>Sign In</ListButton>
signIn() { const self = this; const app = self.$f7; app.views.main.router.navigate('/stockMain/'); }
Router
import StockMainPage from ‘…/pages/stockMain.jsx’;
var routes = [{
{
path: '/stockMain/',
component: StockMainPage,
},
]
Getting an error
Is there any fix or any suggestion?
Thanks