|
|
@@ -30,7 +30,7 @@ class DataSourceDetailContent extends React.Component {
|
|
|
this.setState({ current: current + 1 });
|
|
|
// let step = ['base', 'column', 'access', 'other'][current + 1];
|
|
|
let step = ['base', 'column', 'other'][current + 1];
|
|
|
- this.props.dispatch({ type: 'main/redirect', path: '/datasource/' + type + '/create/' + step })
|
|
|
+ this.props.dispatch({ type: 'main/redirect', path: '/workshop/datasource/' + type + '/create/' + step })
|
|
|
}
|
|
|
|
|
|
prev() {
|
|
|
@@ -38,13 +38,12 @@ class DataSourceDetailContent extends React.Component {
|
|
|
this.setState({ current: current - 1 });
|
|
|
// let step = ['base', 'column', 'access', 'other'][current - 1];
|
|
|
let step = ['base', 'column', 'other'][current - 1];
|
|
|
- this.props.dispatch({ type: 'main/redirect', path: '/datasource/' + type + '/create/' + step })
|
|
|
+ this.props.dispatch({ type: 'main/redirect', path: '/workshop/datasource/' + type + '/create/' + step })
|
|
|
}
|
|
|
|
|
|
render() {
|
|
|
const { dispatch, dataSourceDetail, dataConnect } = this.props;
|
|
|
- const { type, code, tab } = dataSourceDetail;
|
|
|
- const { mode, current } = this.state;
|
|
|
+ const { type, code, tab, mode, current } = this.state;
|
|
|
|
|
|
const steps = [{
|
|
|
tabName: 'base',
|
|
|
@@ -111,7 +110,7 @@ class DataSourceDetailContent extends React.Component {
|
|
|
</div>) : (
|
|
|
<Tabs activeKey={tab} type="card"
|
|
|
onChange={(key) => {
|
|
|
- dispatch({ type: 'main/redirect', path: '/datasource/' + type + '/' + code + '/' + key })
|
|
|
+ dispatch({ type: 'main/redirect', path: '/workshop/datasource/' + type + '/' + code + '/' + key })
|
|
|
this.setState({
|
|
|
tab: key,
|
|
|
})
|