mirror of https://github.com/rancher/dashboard.git
download function downloads
This commit is contained in:
parent
7ddf9819c9
commit
ec7ca507e7
|
|
@ -548,9 +548,9 @@ export default {
|
|||
|
||||
download() {
|
||||
return async() => {
|
||||
const value = await this.followLink('view', { headers: { accept: 'application/yaml' } }).data;
|
||||
const value = await this.followLink('view', { headers: { accept: 'application/yaml' } });
|
||||
|
||||
downloadFile(`${ this.nameDisplay }.yaml`, value, 'application/yaml');
|
||||
downloadFile(`${ this.nameDisplay }.yaml`, value.data, 'application/yaml');
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue