mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-26 20:48:12 +00:00
fix(ai-assistant): 修复图片预览调用不存在方法的错误
将 $A.previewFile 替换为 this.$store.dispatch("previewImage"),
解决 TypeError: $A.previewFile is not a function 错误。
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
95c6b53f10
commit
9097369b0c
@ -42,11 +42,7 @@ export default {
|
|||||||
},
|
},
|
||||||
showPreview() {
|
showPreview() {
|
||||||
if (this.imageUrl) {
|
if (this.imageUrl) {
|
||||||
$A.previewFile({
|
this.$store.dispatch("previewImage", this.imageUrl);
|
||||||
type: 'image',
|
|
||||||
url: this.imageUrl,
|
|
||||||
name: `image_${this.imageId}`,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user