修复设备日志

This commit is contained in:
fengerli
2025-09-19 17:24:12 +08:00
parent bf1eb3ecbb
commit 517998a0db
5 changed files with 13 additions and 40 deletions

View File

@ -87,9 +87,10 @@
<template #default="scope">
<el-popover placement="right" trigger="click">
<template #reference>
<img :src="scope.row.devicePic"
<img v-if="scope.row.devicePic" :src="scope.row.devicePic"
style="width: 40px; height: 40px; cursor: pointer; object-fit: contain"
class="hover:opacity-80 transition-opacity" />
<img v-else src="@/assets/index/IMG.png" alt="" style="width: 40px; height: 40px;">
</template>
<img :src="scope.row.devicePic" style="max-width: 600px; max-height: 600px; object-fit: contain" />
</el-popover>
@ -787,11 +788,11 @@ const submitForm = async () => {
};
// URL转Blob的方法函数
const urlToBlob = async (url: string): Promise<Blob> => {
const response = await fetch(url);
if (!response.ok) throw new Error('图片加载失败');
return await response.blob();
};
// const urlToBlob = async (url: string): Promise<Blob> => {
// const response = await fetch(url);
// if (!response.ok) throw new Error('图片加载失败');
// return await response.blob();
// };
/**
* 关闭用户弹窗