Commit 4c3de7b0 authored by xiaoye's avatar xiaoye

fix

parent d39dfc60
...@@ -448,7 +448,7 @@ ...@@ -448,7 +448,7 @@
}); });
}, },
operatorChk : (f : Function, para : Array<any> = []) : void => { operatorChk : (f : Function, para : Array<any> = []) : void => {
if (Mycard.id >= 0 && (Mycard.id == tournament.this?.creator || tournament.this?.collaborators.includes(parseInt(Mycard.id)))) if (Mycard.id >= 0 && (Mycard.id == tournament.this?.creator || tournament.this?.collaborators.includes(Mycard.id)))
f(...para); f(...para);
else else
UniApp.error('请先登陆或联系比赛主办方', '缺少权限'); UniApp.error('请先登陆或联系比赛主办方', '缺少权限');
......
...@@ -29,7 +29,8 @@ class MyCard { ...@@ -29,7 +29,8 @@ class MyCard {
// @ts-ignore // @ts-ignore
this.user = Object.fromEntries(params); this.user = Object.fromEntries(params);
this.token = this.user.token; this.token = this.user.token;
this.id = this.user.id // @ts-ignore
this.id = parseInt(this.user.id)
this.username = this.user.username; this.username = this.user.username;
this.email = this.user.email; this.email = this.user.email;
this.avatar = this.user.avatar; this.avatar = this.user.avatar;
......
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