|
|
|
|
@ -350,7 +350,7 @@ var Jupyter = function Jupyter(_ref) {
|
|
|
|
|
};
|
|
|
|
|
var handleSaveTPM = /*#__PURE__*/function () {
|
|
|
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
var res, jurl;
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
@ -364,11 +364,6 @@ var Jupyter = function Jupyter(_ref) {
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
if (res.status === 0) {
|
|
|
|
|
message/* default.success */.ZP.success('保存成功!');
|
|
|
|
|
jurl = jupyterUrl;
|
|
|
|
|
setJupyterUrl("");
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
setJupyterUrl(jurl);
|
|
|
|
|
}, 100);
|
|
|
|
|
} else {
|
|
|
|
|
message/* default.info */.ZP.info(res.message);
|
|
|
|
|
}
|
|
|
|
|
@ -605,7 +600,12 @@ var Jupyter = function Jupyter(_ref) {
|
|
|
|
|
var statusList = ["uploading", "done", "removed"];
|
|
|
|
|
if (statusList.includes(info.file.status) && ((_info$file$response = info.file.response) === null || _info$file$response === void 0 ? void 0 : _info$file$response.status) === 0) {
|
|
|
|
|
message/* default.success */.ZP.success('上传文件成功!');
|
|
|
|
|
handleSaveTPM();
|
|
|
|
|
// handleSaveTPM();
|
|
|
|
|
var jurl = jupyterUrl;
|
|
|
|
|
setJupyterUrl("");
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
setJupyterUrl(jurl);
|
|
|
|
|
}, 100);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
var uploadProps = {
|
|
|
|
|
|