|
|
|
@ -15,7 +15,11 @@ import RightPane from './rightpane';
|
|
|
|
|
import { Icon } from 'antd';
|
|
|
|
|
import UserInfo from '../components/userInfo';
|
|
|
|
|
import actions from '../../../redux/actions';
|
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
import { CNotificationHOC } from 'educoder';
|
|
|
|
|
=======
|
|
|
|
|
import { fromStore, CNotificationHOC } from 'educoder';
|
|
|
|
|
>>>>>>> 73d555c... fix
|
|
|
|
|
import { withRouter } from 'react-router';
|
|
|
|
|
|
|
|
|
|
function StudentStudy(props) {
|
|
|
|
@ -49,10 +53,10 @@ function StudentStudy(props) {
|
|
|
|
|
// console.log(id);
|
|
|
|
|
// console.log(id.charAt(id.length-1));
|
|
|
|
|
try {
|
|
|
|
|
if(id.charAt(id.length-1)==="?"){
|
|
|
|
|
if (id.charAt(id.length - 1) === "?") {
|
|
|
|
|
id = id.substring(0, id.length - 1);
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -65,7 +69,7 @@ function StudentStudy(props) {
|
|
|
|
|
const keys = item.split('=');
|
|
|
|
|
obj[keys[0]] = keys[1];
|
|
|
|
|
});
|
|
|
|
|
saveSearchParams({searchParams: $searchs, curPage: obj['pages']});
|
|
|
|
|
saveSearchParams({ searchParams: $searchs, curPage: obj['pages'] });
|
|
|
|
|
}
|
|
|
|
|
if (tab) {
|
|
|
|
|
changeUserCodeTab(tab);
|
|
|
|
@ -73,12 +77,11 @@ function StudentStudy(props) {
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
const { hack = {} } = props;
|
|
|
|
|
if (hack.modify_code && hasUpdate) { // 代码更改,提示是否需要更新代码
|
|
|
|
|
if (hack && hack.modify_code && hasUpdate) { // 代码更改,提示是否需要更新代码
|
|
|
|
|
setHasUpdate(false);
|
|
|
|
|
handleUpdateNotice();
|
|
|
|
|
}
|
|
|
|
|
}, [props, hasUpdate, setHasUpdate]);
|
|
|
|
|
}, [hack, hasUpdate]);
|
|
|
|
|
|
|
|
|
|
const handleUpdateNotice = () => {
|
|
|
|
|
console.log(props);
|
|
|
|
|