|
|
|
@ -4,11 +4,11 @@
|
|
|
|
|
* @Github:
|
|
|
|
|
* @Date: 2019-12-12 15:04:20
|
|
|
|
|
* @LastEditors: tangjiang
|
|
|
|
|
* @LastEditTime: 2019-12-12 17:41:41
|
|
|
|
|
* @LastEditTime: 2019-12-13 11:09:27
|
|
|
|
|
*/
|
|
|
|
|
import './index.scss';
|
|
|
|
|
import React, { useEffect, useState } from 'react';
|
|
|
|
|
import { Spin, Button } from 'antd';
|
|
|
|
|
import { Spin, Button, Icon } from 'antd';
|
|
|
|
|
function RightPane (props) {
|
|
|
|
|
const {
|
|
|
|
|
status,
|
|
|
|
@ -32,6 +32,7 @@ function RightPane (props) {
|
|
|
|
|
|
|
|
|
|
const loadError = (
|
|
|
|
|
<div className="jupyter_load_url_error">
|
|
|
|
|
<Icon type="icon-jiazaishibai1" />
|
|
|
|
|
<p className="jupyter_error_txt">
|
|
|
|
|
加载实训出错,是否
|
|
|
|
|
<span
|
|
|
|
@ -51,7 +52,7 @@ function RightPane (props) {
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (status === -1) {
|
|
|
|
|
setRenderCtx(() => loadInit);
|
|
|
|
|
} else if (status === 0 && url) {
|
|
|
|
|
} else if (status === 2 && url) {
|
|
|
|
|
setRenderCtx(() => (
|
|
|
|
|
|
|
|
|
|
<div className="jupyter_result">
|
|
|
|
|