mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
Adjust some code
This commit is contained in:
parent
65df1463c6
commit
80b8b32371
2 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ export function isInCodePage() {
|
|||
export function getCurrentBranch() {
|
||||
const branchListSelector = '.reference'
|
||||
const branchButtonElement: HTMLElement = $(branchListSelector)
|
||||
const branchNameElement = branchButtonElement.querySelector('.selected')
|
||||
const branchNameElement = branchButtonElement.querySelector('.text > strong')
|
||||
if (branchNameElement) {
|
||||
return branchNameElement.textContent;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ export const Gitea: Platform = {
|
|||
},
|
||||
async getTreeData(metaData, path, recursive, accessToken) {
|
||||
const { userName, repoName, branchName } = metaData
|
||||
const treeData = await API.getTreeData(userName, repoName, branchName)
|
||||
const treeData = await API.getTreeData(userName, repoName, branchName, recursive)
|
||||
|
||||
const root = processTree(
|
||||
treeData.tree.map(item => ({
|
||||
|
|
|
|||
Loading…
Reference in a new issue