Skip to content

Commit 7676308

Browse files
committed
fix(core): avoid unselecting entry for standalone app
1 parent 9a2d8fc commit 7676308

File tree

1 file changed

+7
-1
lines changed
  • packages/core/src/client/standalone

1 file changed

+7
-1
lines changed

packages/core/src/client/standalone/App.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ watch(
3434
},
3535
{ immediate: true },
3636
)
37+
38+
function switchEntry(id: string) {
39+
if (id) {
40+
context.docks.switchEntry(id)
41+
}
42+
}
3743
</script>
3844

3945
<template>
@@ -50,7 +56,7 @@ watch(
5056
class="transition duration-200 p2"
5157
:is-vertical="false"
5258
:selected="context.docks.selected"
53-
@select="(e) => context.docks.switchEntry(e?.id)"
59+
@select="(e) => switchEntry(e?.id)"
5460
/>
5561
</div>
5662
<div>

0 commit comments

Comments
 (0)