diff --git a/plugins/openresty/js/openresty.js b/plugins/openresty/js/openresty.js index ad28cab74..535e91e9e 100755 --- a/plugins/openresty/js/openresty.js +++ b/plugins/openresty/js/openresty.js @@ -74,6 +74,7 @@ function orPluginOpService(a, b, v) { }); } else { orPluginOpServiceOp(a,b,c,d,a,v); + } }); }) @@ -98,6 +99,10 @@ function orPluginOpServiceOp(a,b,c,d,a,v){ if( g.status && g.data != 'ok' ) { layer.msg(g.data, {icon: 2,time: 3000,shade: 0.3,shadeClose: true}); } + + setTimeout(function(){ + location.reload(); + },2000); },'json').error(function() { layer.close(e); layer.msg('操作异常!', {icon: 2}); diff --git a/route/static/app/public.js b/route/static/app/public.js index aa3b68d6b..895b6ae0e 100755 --- a/route/static/app/public.js +++ b/route/static/app/public.js @@ -1536,6 +1536,7 @@ function pluginOpService(a, b, v) { $.post("/plugins/run", c, function(g) { layer.close(e); + var f = g.data == 'ok' ? msgTpl('{1}{2}服务已{3}',[a,v,d]) : msgTpl('{1}{2}服务{3}失败!',[a,v,d]); layer.msg(f, {icon: g.data == 'ok' ? 1 : 2}); @@ -1550,7 +1551,11 @@ function pluginOpService(a, b, v) { if( g.status && g.data != 'ok' ) { layer.msg(g.data, {icon: 2,time: 3000,shade: 0.3,shadeClose: true}); } - + + setTimeout(function(){ + location.reload(); + },2000); + },'json').error(function() { layer.close(e); layer.msg('操作异常!', {icon: 1}); @@ -1558,7 +1563,6 @@ function pluginOpService(a, b, v) { }) } - //配置修改 --- start function pluginConfig(_name, version, func){ if ( typeof(version) == 'undefined' ){