Merge branch 'dev_jupyter' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_jupyter

chromesetting
杨树林 5 years ago
commit e9316d0976

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-12-12 09:01:30 * @Date: 2019-12-12 09:01:30
* @LastEditors: tangjiang * @LastEditors: tangjiang
* @LastEditTime: 2019-12-13 21:02:48 * @LastEditTime: 2019-12-13 23:03:27
*/ */
import types from "./actionTypes"; import types from "./actionTypes";
import { message } from 'antd'; import { message } from 'antd';
@ -100,7 +100,12 @@ export const syncJupyterCode = (identifier, msg) => {
if (res.data.status === 401) return; if (res.data.status === 401) return;
if (res.status === 200) { if (res.status === 200) {
const {status} = res.data const {status} = res.data
if (status === 0) message.success(msg); if (status === 0) {
message.success(msg);
setTimeout(() => {
window.location.reload();
}, 300);
}
} }
}) })
} }

Loading…
Cancel
Save