From 7dc45e3fc7e6608b95b0e6da73f490dc6f89604d Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 8 Jun 2024 10:02:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 390d73fb..31c2eb78 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -244,9 +244,13 @@ function selectSource() { pop.dismiss(); let input = s.replace(/[’‘]/g, ""); - if(tmpList[i].name==s){ + if(tmpList[i].name==input){ Juconfig["homeSource"] = tmpList[i]; writeFile(cfgfile, JSON.stringify(Juconfig)); + clearMyVar('SrcJu_dianbo$分类'); + clearMyVar('SrcJu_dianbo$fold'); + clearMyVar('SrcJu_dianbo$classCache'); + clearMyVar('SrcJu_dianbo$flCache'); refreshPage(false); return 'toast://' + '主页源已设置为:' + input; }else{