This commit is contained in:
X1627315083@163.com
2026-03-02 11:45:40 +08:00
parent 50782b1e9c
commit 1d318f4094
2 changed files with 11 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ defineExpose({push})
</template> --> </template> -->
</VueFlow> </VueFlow>
<div class="btnBox"> <div class="btnBox">
<div class="item" v-if="selectItem.url" @click="versionRestore"> <div class="item" :class="{'active':selectItem.url}" @click="versionRestore">
<div class="icon"> <div class="icon">
<SvgIcon name="versionRestore" size="12" /> <SvgIcon name="versionRestore" size="12" />
</div> </div>
@@ -225,6 +225,11 @@ defineExpose({push})
margin-bottom: 2rem; margin-bottom: 2rem;
background-color: #ffffff; background-color: #ffffff;
cursor: pointer; cursor: pointer;
pointer-events: none;
&.active{
background-color: #f5f5f5;
pointer-events: auto;
}
&:hover{ &:hover{
background-color: #f5f5f5; background-color: #f5f5f5;
} }

View File

@@ -66,7 +66,11 @@
getProjectInfo({ id: projectStore.state.id }).then((res) => { getProjectInfo({ id: projectStore.state.id }).then((res) => {
// console.log('1111111',res); // console.log('1111111',res);
agentRef.value.setChatInfo(res.conversation) agentRef.value.setChatInfo(res.conversation)
projectStore.setProject(res.project) let data = res.project
if(data.latestNodeId)data.nodeId = data.latestNodeId
projectStore.setProject({
...data,
})
}) })
} }