This commit is contained in:
Baobhan Sith
2025-04-17 21:51:07 +08:00
parent 75b6f428c9
commit 3f58f52771
@@ -144,6 +144,7 @@ const handleMenuAction = (action: 'add' | 'edit' | 'delete') => {
closeContextMenu(); // 先关闭菜单
if (action === 'add') {
console.log('[WorkspaceConnectionList] handleMenuAction called with action: add. Emitting request-add-connection...'); // 添加日志
// router.push('/connections/add'); // 改为触发事件
emit('request-add-connection');
} else if (conn) {
@@ -196,9 +197,7 @@ const handleOpenInNewTab = (connectionId: number) => {
:placeholder="t('workspaceConnectionList.searchPlaceholder')"
class="search-input"
/>
<button class="add-button" @click="handleMenuAction('add')" :title="t('connections.addConnection')">
<i class="fas fa-plus"></i>
</button>
<!-- Add button removed -->
</div>
<!-- 连接列表区域 -->