Merge branch 'main' of http://113.45.157.195:3003/raohaotian/train-data
This commit is contained in:
commit
eb117957ef
|
@ -28,7 +28,7 @@ export class TrainSituationRouter {
|
|||
}),
|
||||
findMany:this.trpc.protectProcedure
|
||||
.input(TrainSituationFindManyArgsSchema)
|
||||
.mutation(async ({input}) =>{
|
||||
.query(async ({input}) =>{
|
||||
return this.trainSituationService.findMany(input)
|
||||
}),
|
||||
findManyByDepId:this.trpc.protectProcedure
|
||||
|
@ -37,7 +37,7 @@ export class TrainSituationRouter {
|
|||
domainId: z.string().optional(),
|
||||
trainContentId: z.string().optional()
|
||||
}))
|
||||
.mutation(async ({input}) => {
|
||||
.query(async ({input}) => {
|
||||
return this.trainSituationService.findManyByDeptId(input)
|
||||
})
|
||||
})
|
||||
|
|
|
@ -26,7 +26,7 @@ export default function DailyContext({children}:DailyContextProps){
|
|||
const {data:depts,isLoading:deptsLoading} = isAuthenticated?api.department.getChildSimpleTree.useQuery({
|
||||
rootId:user.deptId
|
||||
}):{data:null,isLoading:false}
|
||||
|
||||
|
||||
useEffect(()=>{
|
||||
console.log(user)
|
||||
},[user])
|
||||
|
|
Loading…
Reference in New Issue