Browse Source

Update Index.vue

star7th 5 years ago
parent
commit
282fc85486
1 changed files with 3 additions and 1 deletions
  1. 3 1
      web_src/src/components/page/edit/Index.vue

+ 3 - 1
web_src/src/components/page/edit/Index.vue

@@ -575,7 +575,9 @@ export default {
       if (
         page_content &&
         page_content.length > 0 &&
-        page_content != childRef.getMarkdown()
+        page_content != childRef.getMarkdown() &&
+        childRef.getMarkdown() && 
+        childRef.getMarkdown().length > 10 
       ) {
         localStorage.removeItem(pkey)
         that