diff --git a/dashboard/src2/components/SiteUpdateDialog.vue b/dashboard/src2/components/SiteUpdateDialog.vue index feb9b94..18bd878 100644 --- a/dashboard/src2/components/SiteUpdateDialog.vue +++ b/dashboard/src2/components/SiteUpdateDialog.vue @@ -122,18 +122,7 @@ export default { return row.will_branch_change ? row.current_branch : row.current_tag || row.current_hash.slice(0, 7); - }, - link(value, row) { - if (row.will_branch_change) { - return `${row.repository_url}/tree/${row.current_branch}`; - } - if (row.current_tag) { - return `${row.repository_url}/releases/tag/${row.current_tag}`; - } - if (row.current_hash) { - return `${row.repository_url}/commit/${row.current_hash}`; - } - }, + } }, { label: '下一个版本', @@ -142,18 +131,7 @@ export default { return row.will_branch_change ? row.branch : row.next_tag || row.next_hash.slice(0, 7); - }, - link(value, row) { - if (row.will_branch_change) { - return `${row.repository_url}/tree/${row.branch}`; - } - if (row.next_tag) { -return `${row.repository_url}/releases/tag/${row.next_tag}`; - } - if (row.next_hash) { - return `${row.repository_url}/commit/${row.next_hash}`; - } - }, + } }, ], };