0
0

删除了git当前显示

This commit is contained in:
xubing
2025-11-25 21:43:28 +08:00
parent 2577e3051b
commit 4ae6b6ff19
3 changed files with 3 additions and 21 deletions

View File

@@ -143,14 +143,6 @@ class ConfigView extends BaseView_1.BaseView {
</div>
</div>
<div style="margin-bottom: 20px;">
${currentGitRepo ? `
<div style="background: var(--vscode-badge-background); padding: 10px; border-radius: 4px; margin-bottom: 15px;">
<strong>当前仓库:</strong> ${currentGitRepo.name} (${currentGitRepo.url})
<button class="btn-sync" onclick="syncGitRepo('${currentGitRepo.id}')" style="background: var(--vscode-button-background); color: var(--vscode-button-foreground); border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; margin-left: 10px;">同步</button>
</div>
` : ''}
</div>
</div>
<script>
@@ -485,7 +477,6 @@ class ConfigView extends BaseView_1.BaseView {
html += (branch.isCurrent ? '⭐ ' : '') + branch.name;
html += (branch.isRemote ? '(远程)' : '(本地)') + '</label></div>';
});
html += '</div>';
html += '<div style="margin-top: 15px;">';
html += '<button class="btn-new" onclick="cloneSelectedBranches()" style="margin-right: 10px;">✅ 克隆选中分支</button>';
html += '<button class="back-btn" onclick="cancelBranchSelection()">取消</button>';