|
|
@@ -256,10 +256,10 @@ 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/:case" component={TrialCase}/>
|
|
|
- <Route path="/wechat-service/:sidebar/:case" component={WechatService}/>
|
|
|
+ <Route path="/graphql-service/:sidebar" component={TrialCase}/>
|
|
|
+ <Route path="/wechat-service/:sidebar" component={WechatService}/>
|
|
|
<Route path="/quant-service/" component={QuantService}/>
|
|
|
- <Route path="/table/:name" component={Column}/>
|
|
|
+ <Route path="/table" component={Column}/>
|
|
|
<Route path="/login" component={Login}/>
|
|
|
<Redirect path="*" to="/"/>
|
|
|
</Switch>
|
|
|
@@ -337,7 +337,13 @@ class GraphqlSidebar extends Component {
|
|
|
{
|
|
|
data.caseSchema.map((schema) =>
|
|
|
<Menu.Item key={schema.schemaName}>
|
|
|
- <Link to={`/graphql-service/trial-case/${schema.schemaName}?id=${schema.id}`}>{schema.schemaName}</Link>
|
|
|
+ <Link to={{
|
|
|
+ pathname: "/graphql-service/trial-case",
|
|
|
+ state:{
|
|
|
+ schemaName:schema.schemaName,
|
|
|
+ schemaId:schema.id
|
|
|
+ }
|
|
|
+ }}>{schema.schemaName}</Link>
|
|
|
</Menu.Item>)
|
|
|
}
|
|
|
</SubMenu>
|
|
|
@@ -357,7 +363,13 @@ class GraphqlSidebar extends Component {
|
|
|
{
|
|
|
data.userSchema.map((schema) =>
|
|
|
<Menu.Item key={schema.schemaName}>
|
|
|
- <Link to={`/graphql-service/my-create/${schema.schemaName}?id=${schema.id}`}>{schema.schemaName}</Link>
|
|
|
+ <Link to={{
|
|
|
+ pathname: "/graphql-service/my-create",
|
|
|
+ state:{
|
|
|
+ schemaName:schema.schemaName,
|
|
|
+ schemaId:schema.id
|
|
|
+ }
|
|
|
+ }}>{schema.schemaName}</Link>
|
|
|
</Menu.Item>)
|
|
|
}
|
|
|
</SubMenu>
|