fix
This commit is contained in:
@@ -125,7 +125,7 @@ defineExpose({push})
|
||||
</template> -->
|
||||
</VueFlow>
|
||||
<div class="btnBox">
|
||||
<div class="item" v-if="selectItem.url" @click="versionRestore">
|
||||
<div class="item" :class="{'active':selectItem.url}" @click="versionRestore">
|
||||
<div class="icon">
|
||||
<SvgIcon name="versionRestore" size="12" />
|
||||
</div>
|
||||
@@ -225,6 +225,11 @@ defineExpose({push})
|
||||
margin-bottom: 2rem;
|
||||
background-color: #ffffff;
|
||||
cursor: pointer;
|
||||
pointer-events: none;
|
||||
&.active{
|
||||
background-color: #f5f5f5;
|
||||
pointer-events: auto;
|
||||
}
|
||||
&:hover{
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,11 @@
|
||||
getProjectInfo({ id: projectStore.state.id }).then((res) => {
|
||||
// console.log('1111111',res);
|
||||
agentRef.value.setChatInfo(res.conversation)
|
||||
projectStore.setProject(res.project)
|
||||
let data = res.project
|
||||
if(data.latestNodeId)data.nodeId = data.latestNodeId
|
||||
projectStore.setProject({
|
||||
...data,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user