更新 'SrcJyAlist.js'

master
src48597962 2 years ago
parent 9bc646ea2e
commit 6c75b16b1f
  1. 4
      SrcJyAlist.js

@ -116,10 +116,8 @@ function alistlist(alistapi){
setResult(d);
try{
let json = JSON.parse(gethtml(alistapi.server + "/api/fs/list", MY_PARAMS.path, alistapi.password));
log(json);
if(json.code==200){
let dirlist = getlist(json.data.content,1);
log(dirlist);
addItemBefore(listid, arrayAdd(dirlist,1,alistapi));
let filelist = getlist(json.data.content,0);
@ -149,7 +147,7 @@ function arrayAdd(list,isdir,alistapi){
},alistapi,item.name),
col_type: 'avatar',
extra: {
path: (MY_PARAMS.path||"") + " / " + item.name
path: (MY_PARAMS.path||"") + "/" + item.name
}
})
})

Loading…
Cancel
Save