Load raw data for text view.
This commit is contained in:
parent
ef6ce7a9ec
commit
0c4b369c30
2 changed files with 9 additions and 1 deletions
|
@ -167,7 +167,11 @@ const RepoHelper = {
|
|||
RepoHelper.setBinaryDataAsBase64(rawUrl, data);
|
||||
data.binary = true;
|
||||
} else {
|
||||
Store.blobRaw = data.plain;
|
||||
Service.getRaw(data.raw_path)
|
||||
.then(response => {
|
||||
Store.blobRaw = response.data;
|
||||
})
|
||||
// Store.blobRaw = data.plain;
|
||||
data.binary = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -18,6 +18,10 @@ const RepoService = {
|
|||
} });
|
||||
},
|
||||
|
||||
getRaw(url) {
|
||||
return axios.get(url);
|
||||
},
|
||||
|
||||
buildParams(url = this.url) {
|
||||
// shallow clone object without reference
|
||||
const params = Object.assign({}, this.options.params);
|
||||
|
|
Loading…
Reference in a new issue