更新 'SrcJySet.js'

master
src48597962 2 years ago
parent bc44198153
commit bbe3613fe7
  1. 10
      SrcJySet.js

@ -3036,21 +3036,21 @@ function yundiskjiekou() {
col_type: 'input', col_type: 'input',
desc: "建议非懂勿动", desc: "建议非懂勿动",
extra: { extra: {
defaultValue: getMyVar('yundiskapi')?JSON.stringify(JSON.parse(getMyVar('yundiskapi')), null, "\t"):"", defaultValue: storage0.getMyVar('yundiskapi')?storage0.getMyVar('yundiskapi'):"",//JSON.stringify(JSON.parse(getMyVar('yundiskapi')), null, "\t"):"",
titleVisible: false, titleVisible: false,
type: "textarea", type: "textarea",
highlight: true, highlight: true,
height: 12, height: 12,
onChange: '/{|}/.test(input)?putMyVar("yundiskapi",JSON.stringify(JSON.parse(input))):""' onChange: '/{|}/.test(input)?storage0.putMyVar("yundiskapi"):""'//,JSON.stringify(JSON.parse(input))
} }
}); });
d.push({ d.push({
title:'保存', title:'保存',
col_type:'text_center_1', col_type:'text_center_1',
url:$("确定保存新接口").confirm((filepath)=>{ url:$("确定保存新接口").confirm((filepath)=>{
if(getMyVar('yundiskapi')){ if(storage0.getMyVar('yundiskapi')){
try{ try{
let newapi = JSON.parse(getMyVar('yundiskapi')); let newapi = storage0.getMyVar('yundiskapi');//JSON.parse(getMyVar('yundiskapi'));
let datafile = fetch(filepath); let datafile = fetch(filepath);
if(datafile != ""){ if(datafile != ""){
try{ try{
@ -3150,3 +3150,5 @@ function yundiskjiekou() {
setResult(d); setResult(d);
} }

Loading…
Cancel
Save