bugfix: 首页不显示+号&sketch卡片尺寸
This commit is contained in:
@@ -536,7 +536,9 @@
|
||||
ancestorsList.push(...list)
|
||||
}
|
||||
|
||||
const setChatInfo = (info) => {
|
||||
const setChatInfo = (info) => {
|
||||
console.log('11111111111',info);
|
||||
|
||||
const initialData = agentStore.getInitialProjectData
|
||||
if (isGenerating.value || initialData) return
|
||||
|
||||
@@ -581,9 +583,9 @@
|
||||
const sessionLastIndexMap = new Map<string, number>()
|
||||
ancestorsList.forEach((item, index) => {
|
||||
console.log('item', item)
|
||||
if (item.image_url) {
|
||||
sessionLastIndexMap.set(item.sessionId, index)
|
||||
}
|
||||
// if (item.image_url) {
|
||||
sessionLastIndexMap.set(item.sessionId, index)
|
||||
// }
|
||||
})
|
||||
sessionLastIndexMap.forEach((lastIndex) => {
|
||||
ancestorsList[lastIndex].text += '<slot slot-name="sketch"></slot>'
|
||||
|
||||
@@ -15,11 +15,6 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
// const props = defineProps<{
|
||||
// title: string
|
||||
// isUrl?: boolean
|
||||
// }>()
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
title?: string
|
||||
@@ -46,17 +41,20 @@
|
||||
background-size: 100% 100%;
|
||||
padding: 2.9rem;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
&.is-url {
|
||||
background: url('@/assets/images/link-card.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
&.is-sketch {
|
||||
background: url('@/assets/images/sketch-card.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
background-size: contain;
|
||||
padding: 2rem 3rem;
|
||||
.report-card-header {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
// &:first-of-type{
|
||||
// margin-top: 0;
|
||||
// }
|
||||
|
||||
&-header {
|
||||
font-family: 'Medium';
|
||||
font-size: 1.6rem;
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
<template>
|
||||
<ReportCard is-sketch title="Sketches Results" content="JPG file"/>
|
||||
<ReportCard is-sketch title="Sketches Results" content="JPG file" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import ReportCard from './ReportCard.vue'
|
||||
import ReportCard from './ReportCard.vue'
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
</style>
|
||||
:deep(.report-card) {
|
||||
width: 52.5rem;
|
||||
height: 8rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</div>
|
||||
<div class="operate flex align-center space-between">
|
||||
<div class="left flex align-center">
|
||||
<div class="agent-operate flex flex-center">
|
||||
<div class="agent-operate flex flex-center" v-if="isAgentMode">
|
||||
<el-popover
|
||||
placement="top"
|
||||
trigger="click"
|
||||
|
||||
Reference in New Issue
Block a user