From f5adeec256f22a2626fe8949c9f61f8ef2cfaac7 Mon Sep 17 00:00:00 2001 From: xingyy <373639591@qq.com> Date: Fri, 16 Aug 2024 10:13:05 +0800 Subject: [PATCH] asdf1 --- index.html | 2 +- src/store/auth/index.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 2943541..5cbf881 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ - 摄影展 + 飞天遇上航天
diff --git a/src/store/auth/index.js b/src/store/auth/index.js index 9bcf57b..3d40f33 100644 --- a/src/store/auth/index.js +++ b/src/store/auth/index.js @@ -97,6 +97,10 @@ export const useAuth=createGlobalState(()=>{ ] },localStorage) const clickAddWorks=()=>{ + if(formData.value.works?.length>=5){ + message.warning('最多上传5个作品') + return + } formData.value.works.push({ picUrl: "", //作品图片url workName: "", //作品名称