From 7917387f4008dc181d72093fb360b133c4e3a95b Mon Sep 17 00:00:00 2001
From: ltx <1006158920@qq.com>
Date: Sat, 9 May 2026 16:38:25 +0800
Subject: [PATCH] =?UTF-8?q?update:=E5=8D=95=E4=BD=8D=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E5=8F=82=E8=B5=9B=E8=AE=B0=E5=BD=95=E6=95=B0=E6=8D=AE=E7=BB=93?=
=?UTF-8?q?=E6=9E=84=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/match/user/unit/index.vue | 42 ++++++-----------------------
1 file changed, 8 insertions(+), 34 deletions(-)
diff --git a/src/views/match/user/unit/index.vue b/src/views/match/user/unit/index.vue
index 056eaaa..34ee34c 100644
--- a/src/views/match/user/unit/index.vue
+++ b/src/views/match/user/unit/index.vue
@@ -39,15 +39,15 @@
-
+
-
+
{
initParamUser.value.refresh = Date.now();
};
-// 查看证书 - 根据项目类型处理
-const viewCertificates = async (item) => {
- console.log('查看证书', item);
- const members = item.members || [];
- if (members.length === 0) {
+// 查看证书
+const viewCertificates = (item) => {
+ if (item.certificateUrl) {
+ openCertificate(item.certificateUrl);
+ } else {
ElMessage.warning('暂无证书');
- return;
}
-
- // if (item.isIndividualProject) {
- // 个人项目:直接打开证书详情
- const memberId = members[0].id;
- try {
- const { succeeded, data, errors } = await eventscoreGetCertificateDetailGet(memberId);
- if (succeeded && data) {
- const imageUrl = data.certificateUrl || data.url || data.Url;
- if (imageUrl) {
- openCertificate(imageUrl);
- } else {
- ElMessage.warning('暂无证书');
- }
- } else {
- ElMessage.warning('暂无证书');
- }
- } catch (error) {
- console.error('获取证书失败', error);
- ElMessage.warning('暂无证书');
- }
- // } else {
- // // 团队项目:弹出证书列表弹窗
- // await loadTeamCertificates(members);
- // }
};
// 加载团队证书列表