From 9565461de459b7036d4ad8eb7dc24f96921ca9bd Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Tue, 18 Oct 2022 20:34:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcLive.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcLive.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SrcLive.js b/SrcLive.js index 2e6029aa..7a25eb3b 100644 --- a/SrcLive.js +++ b/SrcLive.js @@ -235,7 +235,7 @@ function Live() { }); } setHomeResult(d); - if(getMyVar('editmode')){ + if(getMyVar('editmode')&&getMyVar('JYlivedyurl','juying')=="juying"){ let editnames = ["分组删除|groupdelete","分组改名|grouprename","地址删除|urldelete","地址改名|urlrename","退出编辑|exitedit"]; let editmenu = []; for(let i=0;i'+name:name, - url: $("#noLoading#").lazyRule((name,code,editnames) => { + url: getMyVar('JYlivedyurl','juying')=="juying"?$("#noLoading#").lazyRule((name,code,editnames) => { if(code=="exitedit"){ clearMyVar('editmode'); deleteItemByCls('editmenu'); @@ -259,7 +259,7 @@ function Live() { } } return "toast://进入"+name+"模式"; - },name,code,editnames), + },name,code,editnames):"toast://当前为远程订阅源,无法进入编辑模式", col_type: 'scroll_button', extra: { id: code, @@ -632,11 +632,11 @@ function LiveSet() { d.push({ title: '🛠 编辑本地源', col_type: 'text_2', - url: $('#noLoading#').lazyRule(() => { + url: getMyVar('JYlivedyurl','juying')=="juying"?$('#noLoading#').lazyRule(() => { putMyVar('editmode','1'); back(true); return "toast://进入编辑模式,选择操作菜单"; - }) + }):"toast://当前为远程订阅源,无法进入编辑模式" }); d.push({ title: '♻ 清空直播源',