From 1489d47436564d27059df4d6da9c0a49b4043e35 Mon Sep 17 00:00:00 2001
From: src48597962 <48597962@qq.com>
Date: Thu, 13 Apr 2023 16:58:08 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJu.js'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
SrcJu.js | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
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'