diff --git a/route/static/app/site.js b/route/static/app/site.js index 71ba77390..cbd22d6d7 100755 --- a/route/static/app/site.js +++ b/route/static/app/site.js @@ -1548,14 +1548,13 @@ function to301(siteName, type, obj){ }; $.post('/site/save_redirect_conf', data, function(res) { layer.close(load) - var res = JSON.parse(res); if (res.status == true) { layer.msg('保存成功', {icon: 1}); layer.close(index); } else { layer.msg(res.msg, {time: 3000,icon: 2}); } - }); + },'json'); return true; }, }); @@ -1589,10 +1588,9 @@ function to301(siteName, type, obj){ $("#webedit-con").html(body); var loadT = layer.msg(lan.site.the_msg,{icon:16,time:0,shade: [0.3, '#000']}); - $.post('/site/get_redirect','siteName='+siteName, function(response) { + $.post('/site/get_redirect','siteName='+siteName, function(res) { layer.close(loadT); $("#md-301-loading").remove(); - let res = JSON.parse(response); if (res.status === true) { let data = res.data.result; data.forEach(function(item){ @@ -1609,7 +1607,7 @@ function to301(siteName, type, obj){ } else { layer.msg(res.msg, {icon:2}); } - }); + },'json'); } @@ -1620,27 +1618,33 @@ function toProxy(siteName, type, obj) { if(type == 1) { var proxy_form = layer.open({ type: 1, - skin: 'demo-class', area: '650px', title: "创建反向代理", closeBtn: 2, shift: 5, shadeClose: false, btn: ['提交','关闭'], - content: "