mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(view) showImage: can not show image
This commit is contained in:
parent
a6e8aa6d01
commit
74ff48840b
1 changed files with 6 additions and 4 deletions
|
|
@ -188,7 +188,7 @@ function hide() {
|
|||
|
||||
function showImage(href, prefixUrl) {
|
||||
const title = Info.name;
|
||||
const names = Info.file
|
||||
const names = Info.files
|
||||
.filter((file) => {
|
||||
const name = DOM.getCurrentName(file);
|
||||
return isImage(name);
|
||||
|
|
@ -204,10 +204,12 @@ function showImage(href, prefixUrl) {
|
|||
href,
|
||||
title,
|
||||
};
|
||||
}).unshift({
|
||||
href,
|
||||
title,
|
||||
});
|
||||
|
||||
names.unshift({
|
||||
href,
|
||||
title,
|
||||
});
|
||||
|
||||
const config = Object.assign({}, Config, {
|
||||
autoSize : true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue