Skip to content

Commit

Permalink
fix compile errror
Browse files Browse the repository at this point in the history
  • Loading branch information
imzlh committed Jul 31, 2024
1 parent 459a0c2 commit e4035f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/opener/markdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@
}
> div{
@include btn_div();
position: relative;
@include btn_div();
> div.after{
position: absolute;
Expand Down
9 changes: 5 additions & 4 deletions src/utils/imager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,11 @@ export class ImageManager{
// 请求URL
const temp:Array<vFile> = [];
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
Expand Down

0 comments on commit e4035f2

Please sign in to comment.