From ed950510c19767b213fcc993b8f27dbeb00387a5 Mon Sep 17 00:00:00 2001 From: yuz10 <845238369@qq.com> Date: Mon, 31 May 2021 09:47:58 +0800 Subject: [PATCH] #720 fix rocketmq console fail to update nameserver address (#721) --- src/main/resources/static/src/ops.js | 6 +++--- src/main/resources/static/view/pages/ops.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/static/src/ops.js b/src/main/resources/static/src/ops.js index 312e41f..5760f46 100644 --- a/src/main/resources/static/src/ops.js +++ b/src/main/resources/static/src/ops.js @@ -16,14 +16,14 @@ */ app.controller('opsController', ['$scope','$location','$http','Notification','remoteApi','tools', function ($scope,$location,$http,Notification,remoteApi,tools) { - $scope.namesvrAddrList = []; + $scope.namesvrAddrList = ""; $scope.useVIPChannel = true; $http({ method: "GET", url: "ops/homePage.query" }).success(function (resp) { if (resp.status == 0) { - $scope.namesvrAddrList = resp.data.namesvrAddrList; + $scope.namesvrAddrList = resp.data.namesvrAddrList.join(";"); $scope.useVIPChannel = resp.data.useVIPChannel }else{ Notification.error({message: resp.errMsg, delay: 2000}); @@ -34,7 +34,7 @@ app.controller('opsController', ['$scope','$location','$http','Notification','re $http({ method: "POST", url: "ops/updateNameSvrAddr.do", - params:{nameSvrAddrList:$scope.namesvrAddrList.join(";")} + params:{nameSvrAddrList:$scope.namesvrAddrList} }).success(function (resp) { if (resp.status == 0) { Notification.info({message: "SUCCESS", delay: 2000}); diff --git a/src/main/resources/static/view/pages/ops.html b/src/main/resources/static/view/pages/ops.html index 4cdb2ad..ca2fb29 100644 --- a/src/main/resources/static/view/pages/ops.html +++ b/src/main/resources/static/view/pages/ops.html @@ -18,7 +18,7 @@