Commit f083bac1 authored by liujiangnan's avatar liujiangnan

动态模板集成

parent e728e9dd
......@@ -5,6 +5,7 @@ import { AgoraElectronStream, StreamType, nativeRTCClient as nativeClient } from
import { useRoomState } from '../containers/root-container';
import { platform } from '../utils/platform';
import {makeStyles} from "@material-ui/core/styles";
import { endPoint } from '../services/agora-end-points';
const contentMode = 0;
......@@ -25,7 +26,7 @@ const useStyles = makeStyles({
flex: 1
},
style4: {
height: 30,
height: 36,
width: 100,
flex: 0
},
......@@ -36,19 +37,10 @@ const useStyles = makeStyles({
});
const CourseWareFrame: React.FC = () => {
const classes = useStyles();
const ref = useRef<any>('');
const [src, setSrc] = useState('')
const changSrc = (evt: any) => {
setSrc(ref.current.value);
}
const src = endPoint.getCourseUrl();
return (
<div className={classes.style1}>
<div className={classes.style2}>
<input type="text" ref={ref} className={classes.style3} />
<button onClick={changSrc} className={classes.style4}>GO</button>
</div>
<iframe src={src} className={classes.frm}></iframe>
</div>
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment