This commit is contained in:
caoqianming 2020-06-16 18:21:52 +08:00
parent 70e4fc1645
commit 8bf3cb52c6
1 changed files with 6 additions and 1 deletions

View File

@ -254,7 +254,12 @@ export default {
}) })
}, },
handlePreview(file) { 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) { handleSuccess(response, file, fileList) {
this.standard.path = response.data.path this.standard.path = response.data.path