From 8bf3cb52c676e75c422490ce6e3b4d959e3990b6 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 16 Jun 2020 18:21:52 +0800 Subject: [PATCH] filelist --- client/src/views/standard/standard.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/views/standard/standard.vue b/client/src/views/standard/standard.vue index 87daec3..87a3b51 100644 --- a/client/src/views/standard/standard.vue +++ b/client/src/views/standard/standard.vue @@ -254,7 +254,12 @@ export default { }) }, handlePreview(file) { - window.open(file.response.data.path) + if ('url' in file){ + window.open(file.url) + }else{ + window.open(file.response.data.path) + } + }, handleSuccess(response, file, fileList) { this.standard.path = response.data.path