From 857a1aff3ac14df7e9d93c3a60bfd3acdd5d4107 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 2 Apr 2023 22:53:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuman.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuman.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SrcJuman.js b/SrcJuman.js index 62c7f8e0..e5352781 100644 --- a/SrcJuman.js +++ b/SrcJuman.js @@ -212,7 +212,7 @@ function erji() { }) d.push({ title: "切换书源", - url: $("#noLoading#").lazyRule((name) => { + url: getMyVar('backsousuo')=="1"?"back(false);":$("#noLoading#").lazyRule((name) => { require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuman.js'); deleteItemByCls('loadlist'); search(name); @@ -264,6 +264,10 @@ function erji() { } //搜索页面 function sousuo2() { + addListener("onClose", $.toString(() => { + clearMyVar('backsousuo'); + })); + putMyVar('backsousuo','1'); let d = []; d.push({ title: "\n接口搜索结果",