pull/109/head
Mr Chen 6 years ago
parent 73aa71e859
commit ffdf015874
  1. 5
      plugins/openresty/js/openresty.js
  2. 8
      route/static/app/public.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});

@ -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' ){

Loading…
Cancel
Save