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:29 UTC

[servicecomb-service-center] branch mod created (now 9acfa5d)

This is an automated email from the ASF dual-hosted git repository.

littlecui pushed a change to branch mod
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git.


      at 9acfa5d  Bug fix: frontend can't show the schemas

This branch includes the following new commits:

     new 9acfa5d  Bug fix: frontend can't show the schemas

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[servicecomb-service-center] 01/01: Bug fix: frontend can't show the schemas

Posted by li...@apache.org.
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 {