From 31ec63f0419895876cbaba99637a884a32d33d0d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 01 九月 2021 10:31:45 +0800 Subject: [PATCH] 2021-09-01 --- src/components/editor/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/editor/index.jsx b/src/components/editor/index.jsx index 3cfc203..e18f2b8 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() } } -- Gitblit v1.8.0