|
|
@@ -208,7 +208,7 @@ export default {
|
|
|
this.imgList.push(item.url)
|
|
|
return
|
|
|
}
|
|
|
- const routeData = this.$router.resolve({ path: '/home/file_detail', query: { id: item.fileId, search: true } })
|
|
|
+ const routeData = this.$router.resolve({ path: '/home/file_detail', query: { id: item.fileId } })
|
|
|
window.open(routeData.href, '_blank')
|
|
|
} else {
|
|
|
this.query.id = item.id
|
|
|
@@ -316,7 +316,7 @@ export default {
|
|
|
this.imgList = []
|
|
|
},
|
|
|
removeFile (item) {
|
|
|
- if (item.type === '1') {
|
|
|
+ if (item.type === 1) {
|
|
|
this.$confirm('确认是否删除所选文件/文件夹?', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
@@ -332,7 +332,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
- } else if (item.type === '2') {
|
|
|
+ } else if (item.type === 2) {
|
|
|
this.$confirm('确认是否删除所选文件/文件夹?', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|