feat: 广告还有角色异常报错
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user