Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.cos.getBucketInfo(this.name).then((res) => {
this.cos.options.region = res.bucket.Location;
//未找到api获取状态
this.cos.options.secure = false;
delete this.cos.options.endpoint;
this.cos.options = Client.initOptions(this.cos.options);
this.setPermission(res.bucket.AccessControlList.Grant === 'private' ? 1 : 0);
this.getResources();
});
}