feat: 广告还有角色异常报错

This commit is contained in:
chashaobao
2025-07-12 15:28:40 +08:00
parent 42d1208ee4
commit 80846d507f
10 changed files with 17 additions and 26 deletions

View File

@ -271,9 +271,11 @@ export default function JobDetail() {
}, []);
useLoad(async () => {
switchRoleType(RoleType.Anchor);
const query = getPageQuery<Pick<JobDetails, 'id'> & { c: string; share: string }>();
const query = getPageQuery<Pick<JobDetails, 'id'> & { c: string }>();
if (query?.share === 'true') {
switchRoleType(RoleType.Anchor);
}
getInviteCodeFromQueryAndUpdate(query);
const jobId = query?.id;
if (!jobId) {