You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/03/11 15:49:56 UTC

[GitHub] [servicecomb-service-center] little-cui commented on a change in pull request #1289: [fix] modify schema url in frontend

little-cui commented on a change in pull request #1289:
URL: https://github.com/apache/servicecomb-service-center/pull/1289#discussion_r824841770



##########
File path: frontend/app/scripts/scRouterConfig.js
##########
@@ -119,15 +115,11 @@ angular.module('serviceCenter.router', [])
                     servicesList: ['$q', 'httpService', 'apiConstant', function($q, httpService, apiConstant) {
                         $(".loader").show();
                         var deferred = $q.defer();
-                        var url = apiConstant.api.allServices.url;
-                        var method = apiConstant.api.allServices.method;
+                        var url = apiConstant.api.particularService.url.replace('{{serviceId}}', serviceId);

Review comment:
       serviceId未定义,参考以下实现:
   ```js
   serviceInfo: ['$q', 'httpService', 'apiConstant', '$stateParams', function($q, httpService,  apiConstant, $stateParams) {
       var serviceId = $stateParams.serviceId;
   }]
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org