From c1856acfc9636f2089c49826e5eecb628d36b951 Mon Sep 17 00:00:00 2001 From: xujiang Date: Fri, 28 Aug 2020 21:48:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=8A=A8=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=EF=BC=8C=E4=BC=98=E5=8C=96=E7=BB=93=E6=9E=84=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B6=88=E6=81=AF=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MutiText/index.js | 2 +- src/pages/editor/models/editorModal.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/MutiText/index.js b/src/components/MutiText/index.js index 57df913..7cf19ae 100644 --- a/src/components/MutiText/index.js +++ b/src/components/MutiText/index.js @@ -46,7 +46,7 @@ export default memo(function MutiText(props) { diff --git a/src/pages/editor/models/editorModal.js b/src/pages/editor/models/editorModal.js index 3e62fda..e5d25fa 100644 --- a/src/pages/editor/models/editorModal.js +++ b/src/pages/editor/models/editorModal.js @@ -1,5 +1,7 @@ -// import * as mesService from '../services/editorService' -// import { router } from 'umi' +// 将用户数据存贮到localstorage中 +function overSave(name, data) { + localStorage.setItem(name, JSON.stringify(data)) +} export default { namespace: 'editorModal',