Merge remote-tracking branch 'origin/feature/v1.3_主agent_rxd' into test

This commit is contained in:
rd
2025-09-01 17:47:14 +08:00
2 changed files with 14 additions and 10 deletions

View File

@ -34,6 +34,7 @@ export default {
const loading = ref(false);
const isVideo = computed(() => dataSource.value.type === EnumManuscriptType.Video);
const showImages = computed(() => !isVideo.value && images.value.length);
const sourceInfo = computed(() => SOURCE_MAP.get(source) ?? DEFAULT_SOURCE_INFO);
const collapsed = computed(() => {
return sidebarStore.menuCollapse;
@ -125,12 +126,14 @@ export default {
size="medium"
type="outline"
class="mr-12px"
onClick={() => router.push({
onClick={() =>
router.push({
name: 'ManuscriptEdit',
params: {
id: workId.value
id: workId.value,
},
})}
})
}
>
编辑
</Button>
@ -178,7 +181,7 @@ export default {
</div>
{/* 仅图片类型显示图片列表 */}
{!isVideo.value && (
{showImages.value ? (
<div class="desc-img-wrap mt-40px">
{images.value.map((item, index) => (
<div class="desc-img-box" key={index}>
@ -186,7 +189,7 @@ export default {
</div>
))}
</div>
)}
) : null}
</div>
</div>
</div>

View File

@ -34,6 +34,7 @@ export default {
const loading = ref(false);
const isVideo = computed(() => dataSource.value.type === EnumManuscriptType.Video);
const showImages = computed(() => !isVideo.value && images.value.length);
const sourceInfo = computed(() => SOURCE_MAP.get(source) ?? DEFAULT_SOURCE_INFO);
const writerCode = computed(() => route.params.writerCode);
const collapsed = computed(() => {
@ -192,7 +193,7 @@ export default {
</div>
{/* 仅图片类型显示图片列表 */}
{!isVideo.value && (
{showImages.value ? (
<div class="desc-img-wrap mt-40px">
{images.value.map((item, index) => (
<div class="desc-img-box" key={index}>
@ -200,7 +201,7 @@ export default {
</div>
))}
</div>
)}
) : null}
</div>
</div>
</div>