diff --git a/baseTemplate/static/baseTemplate/custom-js/system-status.js b/baseTemplate/static/baseTemplate/custom-js/system-status.js index eef20641f..9fe052f0a 100644 --- a/baseTemplate/static/baseTemplate/custom-js/system-status.js +++ b/baseTemplate/static/baseTemplate/custom-js/system-status.js @@ -564,10 +564,22 @@ app.controller('versionManagment', function ($scope, $http, $timeout) { $scope.updateFinish = true; $scope.couldNotConnect = true; + var data = { + branchSelect: document.getElementById("branchSelect").value, + + }; + + var config = { + headers: { + 'X-CSRFToken': getCookie('csrftoken') + } + }; + + + url = "/base/upgrade"; - - $http.get(url).then(ListInitialData, cantLoadInitialData); + $http.post(url, data, config).then(ListInitialData, cantLoadInitialData); function ListInitialData(response) { @@ -620,6 +632,7 @@ app.controller('versionManagment', function ($scope, $http, $timeout) { function ListInitialDatas(response) { + console.log(response.data.upgradeLog); if (response.data.upgradeStatus === 1) { diff --git a/baseTemplate/templates/baseTemplate/versionManagment.html b/baseTemplate/templates/baseTemplate/versionManagment.html index a7d15313f..0f5c07d08 100755 --- a/baseTemplate/templates/baseTemplate/versionManagment.html +++ b/baseTemplate/templates/baseTemplate/versionManagment.html @@ -31,7 +31,7 @@ } -
{% trans "Here you can manage versions and check for updates to CyberPanel" %}
@@ -47,13 +47,13 @@