Skip to content

Commit

Permalink
fix: 卸载时停止订阅通知
Browse files Browse the repository at this point in the history
  • Loading branch information
yy-wow committed Jan 15, 2025
1 parent 29fa9de commit 20d054c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/canvas/DesignCanvas/src/DesignCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export default {
onUnmounted(() => {
window.removeEventListener('popstate', postUrlChanged)
useMessage().subscribe({
useMessage().unsubscribe({
topic: 'init_canvas_deps',
subscriber: 'canvas_design_canvas'
})
Expand Down

0 comments on commit 20d054c

Please sign in to comment.