From 54f7560f715d444b9d1849d6924e0f2d5d4f4323 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 17 May 2024 17:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuPublic.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/SrcJuPublic.js b/SrcJuPublic.js index 82b9decc..cbbcecf5 100644 --- a/SrcJuPublic.js +++ b/SrcJuPublic.js @@ -164,7 +164,7 @@ function selectSource(selectType) { return 'toast://'+runMode+' 主页源已设置为:' + input; }, selectType, sourcename, cfgfile, Juconfig) //}}); - return "hiker://empty"; + //return "hiker://empty"; } //打开指定类型的新页面 function rulePage(datatype,ispage) { @@ -413,6 +413,17 @@ function getYiData(datatype,od) { lineVisible: false } }) + confirm({ + title: "主页源不存在", + content: "需先选择配置主页源", + confirm: $.toString((input) => { + require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js'); + return selectSource(input); + },runMode), + cancel: $.toString(() => { + return "toast://点击组件或当前分类名称都可以切换主页源"; + }) + }); } setResult(d); }