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