|
|
|
@ -174,7 +174,7 @@ export const changeGetJupyterUrlState = (status) => {
|
|
|
|
|
// 保存 jupyter tpi
|
|
|
|
|
export const saveJupyterTpi = () => {
|
|
|
|
|
return (dispatch, getState) => {
|
|
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
const { jupyter_tpi_code, jupyter_info }= getState().jupyterReducer;
|
|
|
|
|
// console.log(jupyter_info.myshixun_identifier, jupyter_tpi_code);
|
|
|
|
|
if (!jupyter_info.myshixun_identifier) return;
|
|
|
|
@ -182,7 +182,7 @@ export const saveJupyterTpi = () => {
|
|
|
|
|
identifier: jupyter_info.myshixun_identifier,
|
|
|
|
|
jupyter_port: jupyter_tpi_code
|
|
|
|
|
};
|
|
|
|
|
console.log(params);
|
|
|
|
|
|
|
|
|
|
fetchSaveJupyterTpi(params).then(res => {
|
|
|
|
|
dispatch({
|
|
|
|
|
type: types.LOADING_STATUS,
|
|
|
|
@ -200,6 +200,8 @@ export const saveJupyterTpi = () => {
|
|
|
|
|
payload: false
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}, 500)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 改变当前页数
|
|
|
|
|