mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-02 10:59:42 +00:00
perf: 支持下载聊天引用的文件
This commit is contained in:
parent
34cfd1e344
commit
b6a4e6b4de
@ -3416,6 +3416,10 @@ export default {
|
|||||||
this.$store.dispatch("filePos", value);
|
this.$store.dispatch("filePos", value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'filedown':
|
||||||
|
this.$store.dispatch('downUrl', $A.apiUrl(`file/content?id=${value.shakeId}&down=yes`))
|
||||||
|
break;
|
||||||
|
|
||||||
case 'link':
|
case 'link':
|
||||||
this.copyText(value);
|
this.copyText(value);
|
||||||
break;
|
break;
|
||||||
@ -4047,6 +4051,15 @@ export default {
|
|||||||
fileId: null,
|
fileId: null,
|
||||||
shakeId: data.id
|
shakeId: data.id
|
||||||
},
|
},
|
||||||
|
}, {
|
||||||
|
type: 'filedown',
|
||||||
|
icon: '',
|
||||||
|
label: '下载',
|
||||||
|
value: {
|
||||||
|
folderId: data.pid,
|
||||||
|
fileId: null,
|
||||||
|
shakeId: data.id
|
||||||
|
},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -1779,7 +1779,7 @@ export default {
|
|||||||
this.$nextTick(_ => {
|
this.$nextTick(_ => {
|
||||||
const dom = $A(this.$el).find(`[data-id="${fileId}"]`)
|
const dom = $A(this.$el).find(`[data-id="${fileId}"]`)
|
||||||
if (dom.length > 0) {
|
if (dom.length > 0) {
|
||||||
$A.scrollIntoAndShake(dom)
|
$A.scrollIntoAndShake(dom[0])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user