You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2022/03/11 02:16:30 UTC
[servicecomb-service-center] 01/01: Bug fix: frontend can't show the schemas
This is an automated email from the ASF dual-hosted git repository.
littlecui pushed a commit to branch mod
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git
commit 9acfa5d9c3cbdd9b9b2b81e28dffb9254e0c2fa0
Author: little-cui <su...@qq.com>
AuthorDate: Fri Mar 11 10:05:01 2022 +0800
Bug fix: frontend can't show the schemas
---
frontend/app/apiList/apiList.js | 4 ++++
frontend/app/scripts/scRouterConfig.js | 5 +++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/frontend/app/apiList/apiList.js b/frontend/app/apiList/apiList.js
index 71e2636..160d29e 100644
--- a/frontend/app/apiList/apiList.js
+++ b/frontend/app/apiList/apiList.js
@@ -39,6 +39,10 @@ angular.module('serviceCenter')
url: 'v4/default/registry/microservices/{{serviceId}}/schemas/{{schemaId}}',
method: 'GET'
},
+ service: {
+ url: 'v4/default/registry/microservices/{{serviceId}}',
+ method: 'GET'
+ },
allServices: {
url: 'v4/default/govern/microservices?options=instances,dependencies&withShared=true',
method: 'GET'
diff --git a/frontend/app/scripts/scRouterConfig.js b/frontend/app/scripts/scRouterConfig.js
index c111c04..4a9452c 100644
--- a/frontend/app/scripts/scRouterConfig.js
+++ b/frontend/app/scripts/scRouterConfig.js
@@ -57,10 +57,11 @@ angular.module('serviceCenter.router', [])
$(".loader").show();
var serviceId = $stateParams.serviceId;
var deferred = $q.defer();
- var url = apiConstant.api.allServices.url;
- var method = apiConstant.api.allServices.method;
+ var url = apiConstant.api.allServices.url.replace('{{serviceId}}', serviceId);
+ var method = apiConstant.api.service.method;
httpService.apiRequest(url, method, null, null, null).then(function(response) {
$(".loader").hide();
+ // TODO RESPONSE is changed!!!
if (response && response.data && response.data.allServicesDetail) {
deferred.resolve(response);
} else {