fix(web): workspace add button should trigger createInWorkspace instead of selectWorkspace

This commit is contained in:
qer 2026-06-10 22:55:59 +08:00 committed by haozhe.yang
parent 34882923fd
commit fd95db6ddd

View file

@ -447,7 +447,7 @@ function blinkOnce(): void {
<button
class="gh-add"
:title="t('workspace.newInGroup')"
@click.stop="emit('selectWorkspace', g.workspace.id)"
@click.stop="emit('createInWorkspace', g.workspace.id)"
>
<svg viewBox="0 0 16 16" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M8 3v10M3 8h10"/>