Commit 238fc58fe87f2ce1ead1dc7f4a064292b3d10b6c

Authored by 陈鑫涛
1 parent b2a29158

umi组件

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
... ... @@ -107,7 +107,6 @@ class SceneMobile extends React.Component {
107 107 .replace('{sUserId}', userinfo.sId)
108 108 .replace('{token}', token)
109 109 : '';
110   -
111 110 if (iframeUrl.startsWith('http')) {
112 111 this.handleChangeIframeVisible(true, iframeUrl);
113 112 return;
... ...
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
... ... @@ -3,7 +3,6 @@
3 3 * @Last modified time: 2019-06-26T18:40:44+08:00
4 4 */
5 5  
6   -import React from 'react';
7 6 import { connect } from 'umi';
8 7 import CommobileListComponent from '../../../mobile/common/CommobileList';
9 8 import * as commonUtils from '../../../utils/utils';
... ...
src/routes/mobile/common/SceneMobile.js
1 1 import React from 'react';
2   -import { connect } from 'dva';
  2 +import { connect } from 'umi';
3 3 import SceneMobileComponent from '../../../mobile/common/SceneMobile';
4 4  
5 5 function SceneMobile({
... ...