Commit 814314cf authored by xiaoye's avatar xiaoye

Update tournament.vue

parent 1499a481
Pipeline #38698 canceled with stages
in 29 minutes and 29 seconds
...@@ -466,11 +466,14 @@ ...@@ -466,11 +466,14 @@
} }
}); });
}, },
operatorChk : (f : Function, para : Array<any> = []) : void => { operatorChk : (f : Function = () => {}, para : Array<any> = []) : boolean => {
if (Mycard.id >= 0 && (Mycard.id == tournament.this?.creator || tournament.this?.collaborators.includes(Mycard.id))) if (Mycard.id >= 0 && (Mycard.id == tournament.this?.creator || tournament.this?.collaborators.includes(Mycard.id))) {
f(...para); f(...para);
return true
}
else else
UniApp.error('请先登陆或联系比赛主办方', '缺少权限'); UniApp.error('请先登陆或联系比赛主办方', '缺少权限');
return false;
}, },
upload : async () : Promise<void> => { upload : async () : Promise<void> => {
const f = async (res : UniApp.ChooseFileSuccessCallbackResult) : Promise<void> => { const f = async (res : UniApp.ChooseFileSuccessCallbackResult) : Promise<void> => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment