|
|
@@ -257,10 +257,9 @@ class App extends Component {
|
|
|
key={locale ? locale.locale : 'en'/* Have to refresh for production environment */}>
|
|
|
<Switch>
|
|
|
<Route path="/" exact component={TrialCase}/>
|
|
|
- <Route path="/graphql-service/:sidebar" component={TrialCase}/>
|
|
|
- <Route path="/wechat-service/:sidebar" component={WechatService}/>
|
|
|
+ <Route path="/graphql-service/:sidebar/:case" component={TrialCase}/>
|
|
|
+ <Route path="/wechat-service/:sidebar/:case" component={WechatService}/>
|
|
|
<Route path="/quant-service/" component={QuantService}/>
|
|
|
- <Route path="/table" component={TrialCase}/>
|
|
|
<Route path="/login" component={Login}/>
|
|
|
<Redirect path="*" to="/"/>
|
|
|
</Switch>
|
|
|
@@ -339,7 +338,7 @@ class GraphqlSidebar extends Component {
|
|
|
data.caseSchema.map((schema) =>
|
|
|
<Menu.Item key={schema.schemaName}>
|
|
|
<Link to={{
|
|
|
- pathname: "/graphql-service/trial-case",
|
|
|
+ pathname: `/graphql-service/trial-case/${schema.schemaName}`,
|
|
|
state:{
|
|
|
schemaName:schema.schemaName,
|
|
|
schemaID:schema.id
|
|
|
@@ -365,7 +364,7 @@ class GraphqlSidebar extends Component {
|
|
|
data.userSchema.map((schema) =>
|
|
|
<Menu.Item key={schema.schemaName}>
|
|
|
<Link to={{
|
|
|
- pathname: "/graphql-service/my-create",
|
|
|
+ pathname: `/graphql-service/my-create/${schema.schemaName}`,
|
|
|
state:{
|
|
|
schemaName:schema.schemaName,
|
|
|
schemaID:schema.id
|