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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]