1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-21 05:38:13 +00:00
This commit is contained in:
wxiaoguang
2024-04-30 00:19:40 +08:00
parent a21ca9b5a5
commit d90dd9d7f8
3 changed files with 11 additions and 23 deletions

View File

@@ -53,7 +53,7 @@ export function initCommonIssueListQuickGoto() {
// try to check whether the parsed goto link is valid
let targetUrl = parseIssueListQuickGotoLink(repoLink, searchText);
if (targetUrl) {
const res = await GET(`${targetUrl}/info`);
const res = await GET(`${targetUrl}/info`); // backend: GetIssueInfo, it only checks whether the issue exists by status code
if (res.status !== 200) targetUrl = '';
}
// if the input value has changed, then ignore the result