fix
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user