fix
This commit is contained in:
parent
ee8bd6c3c9
commit
a747ed9ac2
|
|
@ -317,7 +317,7 @@ export default abstract class AbstractService<Model extends IAbstract = IAbstrac
|
|||
}
|
||||
|
||||
async getBlobUrl(url : string, method : Method = 'GET', data = {}) {
|
||||
const response = await this.http({
|
||||
const response = await this.http.request({
|
||||
url,
|
||||
method,
|
||||
responseType: 'blob',
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export default class BackgroundUnsplashService extends AbstractService<IBackgrou
|
|||
}
|
||||
|
||||
async thumb(model) {
|
||||
const response = await this.http({
|
||||
const response = await this.http.request({
|
||||
url: `/backgrounds/unsplash/images/${model.id}/thumb`,
|
||||
method: 'GET',
|
||||
responseType: 'blob',
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ export default class ProjectService extends AbstractService<IProject> {
|
|||
return ''
|
||||
}
|
||||
|
||||
const response = await this.http({
|
||||
const response = await this.http.request({
|
||||
url: `/projects/${project.id}/background`,
|
||||
method: 'GET',
|
||||
responseType: 'blob',
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ export default class TotpService extends AbstractService<ITotp> {
|
|||
}
|
||||
|
||||
async qrcode() {
|
||||
const response = await this.http({
|
||||
const response = await this.http.request({
|
||||
url: `${this.urlPrefix}/qrcode`,
|
||||
method: 'GET',
|
||||
responseType: 'blob',
|
||||
|
|
|
|||
Loading…
Reference in New Issue