From 558a56bad54a273c94db6de98a4193f782d6cd6a Mon Sep 17 00:00:00 2001 From: liwei Date: Sat, 6 Jun 2020 19:40:38 +0800 Subject: [PATCH] fix: image compress --- frontend/src/components/files/Preview.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/files/Preview.vue b/frontend/src/components/files/Preview.vue index c96fc7bb..714c34fe 100644 --- a/frontend/src/components/files/Preview.vue +++ b/frontend/src/components/files/Preview.vue @@ -105,7 +105,7 @@ export default { return `${baseURL}/api/raw${this.req.path}?auth=${this.jwt}`; }, compress() { - if (this.type === 'image') { + if (this.req.type === 'image') { return `${baseURL}/api/compress${this.req.path}?auth=${this.jwt}`; } else { return `${baseURL}/api/raw${this.req.path}?auth=${this.jwt}`;