Commit 238fc58fe87f2ce1ead1dc7f4a064292b3d10b6c
1 parent
b2a29158
umi组件
Showing
6 changed files
with
4 additions
and
6 deletions
src/components/Common/Flows/CommonFlow.js
| ... | ... | @@ -13,7 +13,7 @@ import ReactFlow, { |
| 13 | 13 | import * as commonutils from '../../../utils/utils' |
| 14 | 14 | import './flows.less' |
| 15 | 15 | import { MarkerType } from 'react-flow-renderer'; |
| 16 | -import { connect } from "dva" | |
| 16 | +import { connect } from "umi" | |
| 17 | 17 | const getNodeId = () => `randomnode_${+new Date()}`; |
| 18 | 18 | const OverviewFlow = (props) => { |
| 19 | 19 | const { flowData} = props; | ... | ... |
src/components/Common/Flows/OverviewFlow.js
| ... | ... | @@ -13,7 +13,7 @@ import ReactFlow, { |
| 13 | 13 | import * as commonutils from '../../../utils/utils' |
| 14 | 14 | import './flows.less' |
| 15 | 15 | import { MarkerType } from 'react-flow-renderer'; |
| 16 | -import { connect } from "dva" | |
| 16 | +import { connect } from "umi" | |
| 17 | 17 | import { set } from 'lodash'; |
| 18 | 18 | const getNodeId = () => `randomnode_${+new Date()}`; |
| 19 | 19 | const OverviewFlow = (props) => { | ... | ... |
src/mobile/common/SceneMobile.js
src/routes/mobile/IndexMobile.js
| ... | ... | @@ -357,7 +357,7 @@ class IndexMobile extends React.Component { |
| 357 | 357 | selectedTab: "workbench", |
| 358 | 358 | title: "工作台", |
| 359 | 359 | }); |
| 360 | - routerRedux.push("/indexMobile"); | |
| 360 | + history.push("/indexMobile"); | |
| 361 | 361 | }} |
| 362 | 362 | > |
| 363 | 363 | {this.state.selectedTab === "workbench" ? this.renderContent(this.state.selectedTab) : ""} | ... | ... |
src/routes/mobile/commobileList/commobileList.js