mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-26 12:38:13 +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() {
|
||||
if (this.imageUrl) {
|
||||
$A.previewFile({
|
||||
type: 'image',
|
||||
url: this.imageUrl,
|
||||
name: `image_${this.imageId}`,
|
||||
});
|
||||
this.$store.dispatch("previewImage", this.imageUrl);
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user