Commit e728e9dd authored by liujiangnan's avatar liujiangnan

测试

parent 16f2263c
......@@ -5,7 +5,6 @@ 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;
......@@ -26,7 +25,7 @@ const useStyles = makeStyles({
flex: 1
},
style4: {
height: 36,
height: 30,
width: 100,
flex: 0
},
......@@ -36,11 +35,20 @@ const useStyles = makeStyles({
}
});
const CourseWareFrame: React.FC = () => {
const classes = useStyles();
const src = endPoint.getCourseUrl();
const classes = useStyles();
const ref = useRef<any>('');
const [src, setSrc] = useState('')
const changSrc = (evt: any) => {
setSrc(ref.current.value);
}
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