From bbe08466f9f232c031ac212ea5e7bc176f6b074f Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 15 Feb 2023 17:02:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyAlist.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyAlist.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SrcJyAlist.js b/SrcJyAlist.js index 65d210d3..bb3fcfa0 100644 --- a/SrcJyAlist.js +++ b/SrcJyAlist.js @@ -138,16 +138,17 @@ function arrayAdd(list,isdir,alistapi){ let d = []; if(isdir){ list.forEach(item => { + let folderpath = (MY_PARAMS.path||"") + "/" + item.name; d.push({ title: item.name, 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'); alistlist(alistapi); },alistapi), col_type: 'avatar', extra: { - path: (MY_PARAMS.path||"") + "/" + item.name + path: folderpath } }) })