From 293a0c2e33412355deb9b108b9714eb2416d70f5 Mon Sep 17 00:00:00 2001 From: tangjiang <465264938@qq.com> Date: Fri, 13 Dec 2019 21:03:34 +0800 Subject: [PATCH] cancel status --- public/react/src/redux/actions/jupyter.js | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/public/react/src/redux/actions/jupyter.js b/public/react/src/redux/actions/jupyter.js index 5df1babf6..f641bb20f 100644 --- a/public/react/src/redux/actions/jupyter.js +++ b/public/react/src/redux/actions/jupyter.js @@ -4,7 +4,7 @@ * @Github: * @Date: 2019-12-12 09:01:30 * @LastEditors: tangjiang - * @LastEditTime: 2019-12-13 15:27:13 + * @LastEditTime: 2019-12-13 21:02:48 */ import types from "./actionTypes"; import { message } from 'antd'; @@ -25,18 +25,18 @@ export const getJupyterInfo = (id) => { if (res.data.status === 401) return; if (res.status === 200) { const { data } = res; - if (data.status === 0) { - dispatch({ - type: types.SAVE_JUPYTER_INFO, - payload: data - }); - const { identifier, myshixun_identifier } = data; - dispatch(saveJupyterIdentifier(identifier)); - // 调用获取数据集接口 - dispatch(getJupyterTpiDataSet(identifier, jupyter_pagination)); - // 调用获取url接口 - dispatch(getJupyterTpiUrl({identifier: myshixun_identifier})); - } + // if (data.status === 0) { + dispatch({ + type: types.SAVE_JUPYTER_INFO, + payload: data + }); + const { identifier, myshixun_identifier } = data; + dispatch(saveJupyterIdentifier(identifier)); + // 调用获取数据集接口 + dispatch(getJupyterTpiDataSet(identifier, jupyter_pagination)); + // 调用获取url接口 + dispatch(getJupyterTpiUrl({identifier: myshixun_identifier})); + // } } }) }