File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -325,17 +325,6 @@ export class Outline extends Model {
325325 preview : this . isPreview
326326 } , response => {
327327 this . update ( response ) ;
328- // 初始化时从新的存储恢复折叠状态
329- if ( ! this . isPreview ) {
330- fetchPost ( "/api/storage/getOutlineStorage" , {
331- docID : this . blockId
332- } , storageResponse => {
333- const storageData = storageResponse . data ;
334- if ( storageData && storageData . expandIds ) {
335- this . tree . setExpandIds ( storageData . expandIds ) ;
336- }
337- } ) ;
338- }
339328 } ) ;
340329 }
341330
@@ -633,10 +622,6 @@ export class Outline extends Model {
633622 currentId = currentElement . getAttribute ( "data-node-id" ) ;
634623 }
635624 const scrollTop = this . element . scrollTop ;
636-
637- // 保存当前文档的折叠状态到新的持久化存储
638- this . saveExpendIds ( ) ;
639-
640625 if ( typeof callbackId !== "undefined" ) {
641626 this . blockId = callbackId ;
642627 }
You can’t perform that action at this time.
0 commit comments