修复bug

This commit is contained in:
jiayu 2025-07-01 18:37:30 +08:00
parent fb00b75dba
commit 2b708d180c
9 changed files with 14 additions and 8 deletions

3
pnpm-lock.yaml generated
View File

@ -135,6 +135,9 @@ importers:
prettier:
specifier: ~3.0.2
version: 3.0.3
resize-observer-polyfill:
specifier: ^1.5.1
version: 1.5.1
rimraf:
specifier: ~5.0.1
version: 5.0.10

View File

@ -109,7 +109,7 @@
<span class="state-value" :class="{ off: record.state === 0, on: record.state === 1 }">{{ record.state === 1 ? '开' : '关' }}</span>
</template>
<template v-if="column.dataIndex === 'imageUrl'">
<a-image class="image-url" :src="record.imageUrl" alt="" />
<a-image v-if="record.imageUrl" class="image-url" :src="record.imageUrl" :height="64" alt="" />
</template>
<template v-if="column.dataIndex === 'action'">
<div class="smart-table-operate">

View File

@ -212,7 +212,7 @@
}
function handleImageUrlChange(fileList) {
formState.imageUrl = fileList[0]?.fileUrl || undefined;
formState.imageUrl = fileList[0]?.fileUrl || '';
}
// ----------------------- form ajax ---------------------

View File

@ -73,7 +73,7 @@
<span>{{ index + 1 }}</span>
</template>
<template v-if="column.dataIndex === 'imageUrl'">
<a-image v-if="record.imageUrl" :src="record.imageUrl" :height="80" />
<a-image v-if="record.imageUrl" :src="record.imageUrl" :height="64" />
</template>
<template v-if="column.dataIndex === 'action'">
<div class="smart-table-operate">

View File

@ -259,7 +259,7 @@
}
function handleCoverUrlChange(fileList) {
formState.coverUrl = fileList[0]?.fileUrl || undefined;
formState.coverUrl = fileList[0]?.fileUrl || '';
}
// ----------------------- form ajax ---------------------

View File

@ -35,10 +35,9 @@
</a-button-group>
</a-form-item>
</a-row>
<a-row class="smart-query-form-row"> </a-row>
</a-form>
<a-card size="small" :bordered="false">
<a-card size="small" :bordered="false" class="smart-table-card">
<a-tabs @change="changeNotViewFlag" size="small">
<a-tab-pane :key="0" tab="全部" />
<a-tab-pane :key="1" tab="未读" />

View File

@ -80,7 +80,7 @@
<span class="state-value" :class="{ off: record.state === 0, on: record.state === 1 }">{{ record.state === 1 ? '在线' : '离线' }}</span>
</template>
<template v-if="column.dataIndex === 'imageUrl'">
<a-image class="image-url" :src="record.imageUrl" alt="" />
<a-image v-if="record.imageUrl" class="image-url" :src="record.imageUrl" :height="64" alt="" />
</template>
<template v-if="column.dataIndex === 'action'">
<div class="smart-table-operate">

View File

@ -231,7 +231,7 @@
}
function handleImageUrlChange(fileList) {
formState.imageUrl = fileList[0]?.fileUrl || undefined;
formState.imageUrl = fileList[0]?.fileUrl || '';
}
// ----------------------- form ajax ---------------------

View File

@ -92,7 +92,11 @@
margin-left: 10px;
background: #ffffff;
padding: 20px;
box-sizing: border-box;
border-radius: 8px;
:deep(.smart-table-card) {
height: calc(100vh - 260px) !important;
}
}
}
</style>