From 34bc7b4d0c31ededcbc392df964eb323c034749f Mon Sep 17 00:00:00 2001 From: Br1an67 <932039080@qq.com> Date: Wed, 7 Jan 2026 13:12:16 +0800 Subject: [PATCH] Fix: Use repo_owner parameter to construct correct API URL --- html/src/components/terminal/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/src/components/terminal/index.tsx b/html/src/components/terminal/index.tsx index 1005603..4e31ac3 100644 --- a/html/src/components/terminal/index.tsx +++ b/html/src/components/terminal/index.tsx @@ -35,7 +35,9 @@ export class Terminal extends Component { const options = new URLSearchParams(decodeURIComponent(window.location.search)); this.isDockerType = options.get('type') === 'docker'; - this.apiBaseUrl = `http://${options.get('domain')}:${options.get('port')}/${options.get('user')}/${options.get('repo')}`; + // Use repo_owner if available, otherwise fall back to user + const repoOwner = options.get('repo_owner') || options.get('user'); + this.apiBaseUrl = `http://${options.get('domain')}:${options.get('port')}/${repoOwner}/${options.get('repo')}`; this.apiParams = new URLSearchParams({ repo: options.get('repoid') as string, user: options.get('userid') as string,