liyongli il y a 2 ans
Parent
commit
6d87354541
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/components/editor.vue

+ 1 - 0
src/components/editor.vue

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