1 Commits

Author SHA1 Message Date
34bc7b4d0c Fix: Use repo_owner parameter to construct correct API URL 2026-01-07 13:12:16 +08:00

View File

@@ -35,7 +35,9 @@ export class Terminal extends Component<Props, State> {
const options = new URLSearchParams(decodeURIComponent(window.location.search)); const options = new URLSearchParams(decodeURIComponent(window.location.search));
this.isDockerType = options.get('type') === 'docker'; 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({ this.apiParams = new URLSearchParams({
repo: options.get('repoid') as string, repo: options.get('repoid') as string,
user: options.get('userid') as string, user: options.get('userid') as string,