diff --git a/src/opener/markdown.vue b/src/opener/markdown.vue index 2bd07f2..43b2d94 100644 --- a/src/opener/markdown.vue +++ b/src/opener/markdown.vue @@ -442,8 +442,8 @@ } > div{ - @include btn_div(); position: relative; + @include btn_div(); > div.after{ position: absolute; diff --git a/src/utils/imager.ts b/src/utils/imager.ts index 65c6bfd..6c2b420 100644 --- a/src/utils/imager.ts +++ b/src/utils/imager.ts @@ -542,10 +542,11 @@ export class ImageManager{ // 请求URL const temp:Array = []; let id = -1; - (await FS.listall(info.dir)).filter(item => item.type == 'file').forEach(data => { - (ImageManager.IMAGE.includes(splitPath(data)['ext'].toLowerCase())) - ? ( data.path == f.path ? id = temp.push(data)-1 : temp.push(data) ) : null - }); + ((await FS.listall(info.dir)).filter(item => item.type == 'file') as vFile[]) + .forEach(data => { + (ImageManager.IMAGE.includes(splitPath(data)['ext'].toLowerCase())) + && ( data.path == f.path ? id = temp.push(data)-1 : temp.push(data) ) + }); this.files.value = temp; this.current_dir = info.dir; // 激活viewer