更新 'SrcJyAlist.js'

master
src48597962 2 years ago
parent e3c6e78391
commit bbe08466f9
  1. 5
      SrcJyAlist.js

@ -138,16 +138,17 @@ function arrayAdd(list,isdir,alistapi){
let d = []; let d = [];
if(isdir){ if(isdir){
list.forEach(item => { list.forEach(item => {
let folderpath = (MY_PARAMS.path||"") + "/" + item.name;
d.push({ d.push({
title: item.name, title: item.name,
img: item.thumb || config.依赖.match(/http(s)?:\/\/.*\//)[0] + "img/文件夹.svg", img: item.thumb || config.依赖.match(/http(s)?:\/\/.*\//)[0] + "img/文件夹.svg",
url: $("hiker://empty#noRecordHistory##noHistory#"+alistapi.server+(MY_PARAMS.path||"") + "/" + item.name).rule((alistapi) => { url: $("hiker://empty##" + alistapi.server + folderpath + "#noRecordHistory##noHistory#").rule((alistapi) => {
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyAlist.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyAlist.js');
alistlist(alistapi); alistlist(alistapi);
},alistapi), },alistapi),
col_type: 'avatar', col_type: 'avatar',
extra: { extra: {
path: (MY_PARAMS.path||"") + "/" + item.name path: folderpath
} }
}) })
}) })

Loading…
Cancel
Save