|
@@ -28,7 +28,7 @@
|
|
|
<span v-if="showName">{{ item.name }}</span>
|
|
|
<el-link v-if="viewOnline && (checkFileType(item.url) != 'file')" @click="getBase64(item.url)"
|
|
|
type="primary">查看</el-link>
|
|
|
- <el-link v-if="download" :href="item.url" type="primary">下载</el-link>
|
|
|
+ <el-link v-if="download" @click="openNew(item.url)" type="primary">下载</el-link>
|
|
|
</div>
|
|
|
</div>
|
|
|
<template v-if="isEdit">
|
|
@@ -187,6 +187,9 @@ export default {
|
|
|
// })
|
|
|
},
|
|
|
methods: {
|
|
|
+ openNew(url) {
|
|
|
+ window.open(url, '_blank')
|
|
|
+ },
|
|
|
getBase64(url) {
|
|
|
window.open(this.$xdocUrl + encodeURIComponent(Base64.encode(url)), '_blank')
|
|
|
},
|