From 238fc58fe87f2ce1ead1dc7f4a064292b3d10b6c Mon Sep 17 00:00:00 2001 From: 陈鑫涛 <10125295+chen-xintao97@user.noreply.gitee.com> Date: Wed, 28 May 2025 10:15:33 +0800 Subject: [PATCH] umi组件 --- src/components/Common/Flows/CommonFlow.js | 2 +- src/components/Common/Flows/OverviewFlow.js | 2 +- src/mobile/common/SceneMobile.js | 1 - src/routes/mobile/IndexMobile.js | 2 +- src/routes/mobile/commobileList/commobileList.js | 1 - src/routes/mobile/common/SceneMobile.js | 2 +- 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/Common/Flows/CommonFlow.js b/src/components/Common/Flows/CommonFlow.js index a93d7da..ec838a0 100644 --- a/src/components/Common/Flows/CommonFlow.js +++ b/src/components/Common/Flows/CommonFlow.js @@ -13,7 +13,7 @@ import ReactFlow, { import * as commonutils from '../../../utils/utils' import './flows.less' import { MarkerType } from 'react-flow-renderer'; -import { connect } from "dva" +import { connect } from "umi" const getNodeId = () => `randomnode_${+new Date()}`; const OverviewFlow = (props) => { const { flowData} = props; diff --git a/src/components/Common/Flows/OverviewFlow.js b/src/components/Common/Flows/OverviewFlow.js index 3991e86..9cf0628 100644 --- a/src/components/Common/Flows/OverviewFlow.js +++ b/src/components/Common/Flows/OverviewFlow.js @@ -13,7 +13,7 @@ import ReactFlow, { import * as commonutils from '../../../utils/utils' import './flows.less' import { MarkerType } from 'react-flow-renderer'; -import { connect } from "dva" +import { connect } from "umi" import { set } from 'lodash'; const getNodeId = () => `randomnode_${+new Date()}`; const OverviewFlow = (props) => { diff --git a/src/mobile/common/SceneMobile.js b/src/mobile/common/SceneMobile.js index cb569d3..151c3ea 100644 --- a/src/mobile/common/SceneMobile.js +++ b/src/mobile/common/SceneMobile.js @@ -107,7 +107,6 @@ class SceneMobile extends React.Component { .replace('{sUserId}', userinfo.sId) .replace('{token}', token) : ''; - if (iframeUrl.startsWith('http')) { this.handleChangeIframeVisible(true, iframeUrl); return; diff --git a/src/routes/mobile/IndexMobile.js b/src/routes/mobile/IndexMobile.js index 2ff5083..87096c2 100644 --- a/src/routes/mobile/IndexMobile.js +++ b/src/routes/mobile/IndexMobile.js @@ -357,7 +357,7 @@ class IndexMobile extends React.Component { selectedTab: "workbench", title: "工作台", }); - routerRedux.push("/indexMobile"); + history.push("/indexMobile"); }} > {this.state.selectedTab === "workbench" ? this.renderContent(this.state.selectedTab) : ""} diff --git a/src/routes/mobile/commobileList/commobileList.js b/src/routes/mobile/commobileList/commobileList.js index d2d9daf..0826dff 100644 --- a/src/routes/mobile/commobileList/commobileList.js +++ b/src/routes/mobile/commobileList/commobileList.js @@ -3,7 +3,6 @@ * @Last modified time: 2019-06-26T18:40:44+08:00 */ -import React from 'react'; import { connect } from 'umi'; import CommobileListComponent from '../../../mobile/common/CommobileList'; import * as commonUtils from '../../../utils/utils'; diff --git a/src/routes/mobile/common/SceneMobile.js b/src/routes/mobile/common/SceneMobile.js index 5fb7956..210d7ce 100644 --- a/src/routes/mobile/common/SceneMobile.js +++ b/src/routes/mobile/common/SceneMobile.js @@ -1,5 +1,5 @@ import React from 'react'; -import { connect } from 'dva'; +import { connect } from 'umi'; import SceneMobileComponent from '../../../mobile/common/SceneMobile'; function SceneMobile({ -- libgit2 0.22.2