diff --git a/SrcJu.js b/SrcJu.js
index d6bd8799..3527b778 100644
--- a/SrcJu.js
+++ b/SrcJu.js
@@ -397,6 +397,10 @@ function erji() {
title: getMyVar(sname + 'sort') == '1' ? `““””排序⇅` : `““””排序⇅`,
url: $("#noLoading#").lazyRule((sname) => {
let 列表 = findItemsByCls('playlist') || [];
+ if(列表.length==0){
+ return 'toast://未获取到列表'
+ }
+ deleteItemByCls('playlist');
if (getMyVar(sname + 'sort') == '1') {
putMyVar(sname + 'sort', '0');
updateItem('listsort', {
@@ -413,7 +417,6 @@ function erji() {
列表.forEach(item => {
item.col_type = list_col_type;
})
- deleteItemByCls('playlist');
addItemBefore('listloading', 列表);
return 'toast://切换排序成功'
}, sname),
@@ -427,10 +430,13 @@ function erji() {
title: `““””样式🎨`,
url: $(["text_1","text_2","text_3","flex_button"],1,"选集列表样式").select(() => {
let 列表 = findItemsByCls('playlist') || [];
+ if(列表.length==0){
+ return 'toast://未获取到列表'
+ }
+ deleteItemByCls('playlist');
列表.forEach(item => {
item.col_type = input;
})
- deleteItemByCls('playlist');
addItemBefore('listloading', 列表);
setItem('SrcJuList_col_type', input);
return 'hiker://empty'