diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index acd18e6c3..0356f25f1 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -35,7 +35,7 @@ if (isDev) { // 老师 //ebugType="teacher"; // 学生 -// debugType="student"; +//debugType="student"; window._debugType = debugType; export function initAxiosInterceptors(props) { diff --git a/public/react/src/modules/tpm/TPMDataset.js b/public/react/src/modules/tpm/TPMDataset.js index 1cb64df36..b70bc457c 100644 --- a/public/react/src/modules/tpm/TPMDataset.js +++ b/public/react/src/modules/tpm/TPMDataset.js @@ -502,7 +502,7 @@ class TPMDataset extends Component { //上传前的操作 console.log('beforeUpload', file); // this.props.showNotification(`文件上传中`); - const isLt400M = file.size / 1024 / 1024 <= 1; + const isLt400M = file.size / 1024 / 1024 <= 400; if (!isLt400M) { this.props.showNotification('文件大小必须小于等于400MB!'); diff --git a/public/react/src/modules/tpm/TPMIndex.js b/public/react/src/modules/tpm/TPMIndex.js index c44d8ce51..a8e869a3c 100644 --- a/public/react/src/modules/tpm/TPMIndex.js +++ b/public/react/src/modules/tpm/TPMIndex.js @@ -412,7 +412,7 @@ class TPMIndex extends Component { 合作者 - { this.state.is_jupyter===true?