Skip to content

A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物

Refactor Step5Interaction component to streamline profile display and remove unused topics section

666ghj318d60fa42ef
diff --git a/frontend/src/components/Step5Interaction.vue b/frontend/src/components/Step5Interaction.vue
index dbdd2a6e..0f15780e 100644
--- a/frontend/src/components/Step5Interaction.vue
+++ b/frontend/src/components/Step5Interaction.vue
@@ -156,17 +156,11 @@
</svg>
</button>
</div>
- <div v-if="showFullProfile" class="profile-card-body">
- <div v-if="selectedAgent.bio" class="profile-card-bio">
+ <div v-if="showFullProfile && selectedAgent.bio" class="profile-card-body">
+ <div class="profile-card-bio">
<div class="profile-card-label">简介</div>
<p>{{ selectedAgent.bio }}</p>
</div>
- <div v-if="selectedAgent.interested_topics?.length" class="profile-card-topics">
- <div class="profile-card-label">兴趣领域</div>
- <div class="profile-topics-list">
- <span v-for="topic in selectedAgent.interested_topics" :key="topic" class="profile-topic-tag">{{ topic }}</span>
- </div>
- </div>
</div>
</div>
@@ -1335,28 +1329,6 @@ watch(() => props.simulationId, (newId) => {
color: #4B5563;
}
-.profile-card-topics {
- background: #FFFFFF;
- padding: 12px 14px;
- border-radius: 8px;
- border: 1px solid #E5E7EB;
-}
-
-.profile-topics-list {
- display: flex;
- flex-wrap: wrap;
- gap: 6px;
-}
-
-.profile-topic-tag {
- padding: 4px 10px;
- background: #F3F4F6;
- color: #374151;
- border-radius: 12px;
- font-size: 12px;
- font-weight: 500;
-}
-
/* Target Selector */
.target-selector {
padding: 16px 24px;