diff --git a/mq-cloud/src/main/resources/templates/admin/cluster/list.html b/mq-cloud/src/main/resources/templates/admin/cluster/list.html index 6b3d73eb..2354a6f6 100644 --- a/mq-cloud/src/main/resources/templates/admin/cluster/list.html +++ b/mq-cloud/src/main/resources/templates/admin/cluster/list.html @@ -149,7 +149,7 @@ $("#storePathRootDir").val("/opt/mqcloud/"+$("#brokerName").val()+"/data"); $("#storePathCommitLog").val("/opt/mqcloud/"+$("#brokerName").val()+"/data/commitlog"); }); - } + }else{ + $("#brokerName").bind('input propertychange', function(){ + $("#dir").val($("#brokerName").val()); + }); + } if(!$("#rmqAddressServerDomain").val()){ $("#rmqAddressServerDomain").val('${mqcloudDomain}').attr("readonly","readonly"); } @@ -1509,7 +1513,7 @@ toastr.error("启动失败!"+data.message); enable(dir+"Btn"); } - }, 'json'); + }, 'json'); } \ No newline at end of file