fix: hide tour component for mobile (#2317)

This commit is contained in:
Baihhh 2023-09-08 22:53:46 +08:00 committed by GitHub
parent d12088e8e7
commit e9d8ab8cdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ class BaseListPage extends React.Component {
this.renderTable(this.state.data)
}
<Tour
open={this.state.isTourVisible}
open={Setting.isMobile() ? false : this.state.isTourVisible}
onClose={this.setIsTourVisible}
steps={this.getSteps()}
indicatorsRender={(current, total) => (

View File

@ -178,7 +178,7 @@ class SystemInfo extends React.Component {
<Col span={6}></Col>
</Row>
<Tour
open={this.state.isTourVisible}
open={Setting.isMobile() ? false : this.state.isTourVisible}
onClose={this.setIsTourVisible}
steps={this.getSteps()}
indicatorsRender={(current, total) => (

View File

@ -150,7 +150,7 @@ const Dashboard = (props) => {
{renderEChart()}
<div id="echarts-chart" style={{width: "80%", height: "400px", textAlign: "center", marginTop: "20px"}} />
<Tour
open={isTourVisible}
open={Setting.isMobile() ? false : isTourVisible}
onClose={setIsTourToLocal}
steps={getSteps()}
indicatorsRender={(current, total) => (