fix(测试计划): 修复附件图片预览未直接显示当前图片的缺陷
--bug=1041288 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001041288
This commit is contained in:
parent
d387202f78
commit
e2ceab55ff
|
@ -632,7 +632,6 @@
|
||||||
// 预览
|
// 预览
|
||||||
async function handlePreview(item: MsFileItem) {
|
async function handlePreview(item: MsFileItem) {
|
||||||
try {
|
try {
|
||||||
previewVisible.value = true;
|
|
||||||
const res = await previewFile({
|
const res = await previewFile({
|
||||||
projectId: currentProjectId.value,
|
projectId: currentProjectId.value,
|
||||||
caseId: detailForm.value.id,
|
caseId: detailForm.value.id,
|
||||||
|
@ -641,6 +640,7 @@
|
||||||
});
|
});
|
||||||
const blob = new Blob([res], { type: 'image/jpeg' });
|
const blob = new Blob([res], { type: 'image/jpeg' });
|
||||||
imageUrl.value = URL.createObjectURL(blob);
|
imageUrl.value = URL.createObjectURL(blob);
|
||||||
|
previewVisible.value = true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue