diff --git a/public/react/src/modules/modals/Jointheclass.js b/public/react/src/modules/modals/Jointheclass.js
index 40f62a6ac..0ad13c158 100644
--- a/public/react/src/modules/modals/Jointheclass.js
+++ b/public/react/src/modules/modals/Jointheclass.js
@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import { Modal} from 'antd';
import axios from 'axios';
+import Modals from './Modals';
//加入精品课堂
class Jointheclass extends Component {
@@ -11,6 +12,12 @@ class Jointheclass extends Component {
componentDidMount() {
// console.log("加入精品课堂");
// console.log(this.props);
+ let type=this.props.yslJointhe===undefined?false:this.props.yslJointhe;
+ if(type===true){
+ this.setState({
+ Modalstype:true
+ })
+ }
}
@@ -48,35 +55,15 @@ class Jointheclass extends Component {
// console.log("加入精品课堂2");
//console.log(this.props.Pathcourseid);
return(
- 是否确认加入该课堂?