Fix aliyun issue

This commit is contained in:
loganhz 2018-06-04 23:42:15 +08:00
parent e61f304134
commit ef9abe716b
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ export default Component.extend(NodeDriver, {
const location = window.location;
let endpoint = get(this, 'config.apiEndpoint') ? get(this, 'config.apiEndpoint') : ENDPOINT;
endpoint = get(this,'app.proxyEndpoint') + '/' + endpoint.replace('//', '/');
endpoint = `${location.origin}/${endpoint}`;
endpoint = `${location.origin}${endpoint}`;
ecs = new ALY.ECS({
accessKeyId: get(this, 'config.accessKeyId'),