liyongli 2 年之前
父节点
当前提交
6d87354541
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/components/editor.vue

+ 1 - 0
src/components/editor.vue

@@ -15,6 +15,7 @@ export default {
   watch: {
     rawText(t) {
       this.editor.innerHTML = t;
+      localStorage.setItem('media_editor', this.editor.value.innerHTML);
     },
   },
   setup() {