feat: sketch同步画布修改
This commit is contained in:
@@ -95,7 +95,7 @@
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleGetProjectInfoAndHistory = () => {
|
const handleGetProjectInfoAndHistory = () => {
|
||||||
sketchList.value = []
|
sketchList.value = []
|
||||||
getProjectInfo({ id: route.params.id }).then((res) => {
|
getProjectInfo({ id: route.params.id }).then((res) => {
|
||||||
if (!res) {
|
if (!res) {
|
||||||
@@ -154,6 +154,7 @@
|
|||||||
MyEvent.add('openUrls', handleOpenUrls)
|
MyEvent.add('openUrls', handleOpenUrls)
|
||||||
MyEvent.add('openSketch', handleOpenSketch)
|
MyEvent.add('openSketch', handleOpenSketch)
|
||||||
MyEvent.add('renameConversation', handleRenameConversation)
|
MyEvent.add('renameConversation', handleRenameConversation)
|
||||||
|
MyEvent.add('closeFlowCanvas', handleGetProjectInfoAndHistory)
|
||||||
projectStore.clearProject()
|
projectStore.clearProject()
|
||||||
if (proJectId.value) {
|
if (proJectId.value) {
|
||||||
handleGetProjectInfoAndHistory()
|
handleGetProjectInfoAndHistory()
|
||||||
@@ -162,8 +163,9 @@
|
|||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
MyEvent.remove('openReport', handleOpenReport)
|
MyEvent.remove('openReport', handleOpenReport)
|
||||||
MyEvent.remove('openUrls', handleOpenUrls)
|
MyEvent.remove('openUrls', handleOpenUrls)
|
||||||
MyEvent.remove('OpenSketch', handleOpenSketch)
|
MyEvent.remove('openSketch', handleOpenSketch)
|
||||||
MyEvent.remove('renameConversation', handleRenameConversation)
|
MyEvent.remove('renameConversation', handleRenameConversation)
|
||||||
|
MyEvent.remove('closeFlowCanvas', handleGetProjectInfoAndHistory)
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user