mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-19 16:13:49 +08:00
fix: hide tour component for mobile (#2317)
This commit is contained in:
@ -204,7 +204,7 @@ class BaseListPage extends React.Component {
|
|||||||
this.renderTable(this.state.data)
|
this.renderTable(this.state.data)
|
||||||
}
|
}
|
||||||
<Tour
|
<Tour
|
||||||
open={this.state.isTourVisible}
|
open={Setting.isMobile() ? false : this.state.isTourVisible}
|
||||||
onClose={this.setIsTourVisible}
|
onClose={this.setIsTourVisible}
|
||||||
steps={this.getSteps()}
|
steps={this.getSteps()}
|
||||||
indicatorsRender={(current, total) => (
|
indicatorsRender={(current, total) => (
|
||||||
|
@ -178,7 +178,7 @@ class SystemInfo extends React.Component {
|
|||||||
<Col span={6}></Col>
|
<Col span={6}></Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Tour
|
<Tour
|
||||||
open={this.state.isTourVisible}
|
open={Setting.isMobile() ? false : this.state.isTourVisible}
|
||||||
onClose={this.setIsTourVisible}
|
onClose={this.setIsTourVisible}
|
||||||
steps={this.getSteps()}
|
steps={this.getSteps()}
|
||||||
indicatorsRender={(current, total) => (
|
indicatorsRender={(current, total) => (
|
||||||
|
@ -150,7 +150,7 @@ const Dashboard = (props) => {
|
|||||||
{renderEChart()}
|
{renderEChart()}
|
||||||
<div id="echarts-chart" style={{width: "80%", height: "400px", textAlign: "center", marginTop: "20px"}} />
|
<div id="echarts-chart" style={{width: "80%", height: "400px", textAlign: "center", marginTop: "20px"}} />
|
||||||
<Tour
|
<Tour
|
||||||
open={isTourVisible}
|
open={Setting.isMobile() ? false : isTourVisible}
|
||||||
onClose={setIsTourToLocal}
|
onClose={setIsTourToLocal}
|
||||||
steps={getSteps()}
|
steps={getSteps()}
|
||||||
indicatorsRender={(current, total) => (
|
indicatorsRender={(current, total) => (
|
||||||
|
Reference in New Issue
Block a user