From 8d66ff34fae5b048a6b7923cc75d34f13a08be9d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 02 八月 2022 11:42:43 +0800 Subject: [PATCH] Merge branch 'develop' --- src/components/editor/index.jsx | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/editor/index.jsx b/src/components/editor/index.jsx index 3cfc203..dae66f6 100644 --- a/src/components/editor/index.jsx +++ b/src/components/editor/index.jsx @@ -48,7 +48,7 @@ if (initVal) { try { initVal = window.decodeURIComponent(window.atob(initVal)) - } catch { + } catch (e) { initVal = this.props['data-__meta'].initialValue || null } } @@ -72,7 +72,7 @@ if (encryption === 'true') { try { val = window.btoa(window.encodeURIComponent(val)) - } catch { + } catch (e) { val = editorState.toHTML() } } @@ -94,6 +94,7 @@ form.append('shardingCnt', _param.chunks) form.append('shardingNo', _param.chunk) form.append('LoginUID', sessionStorage.getItem('LoginUID') || '') + form.append('UserID', sessionStorage.getItem('UserID') || '') Api.getLargeFileUpload(form).then(res => { if (res.status) { -- Gitblit v1.8.0