Commit a646cc90 authored by m's avatar m

feat: 领取完水晶刷新积分

parent 4cf29630
......@@ -28,13 +28,14 @@ const CroupHeader = ({ groupNo }: { groupNo: string }) => {
const [hideIndex, setHideIndex] = useState(-1)
const queryTribePoint = useStoreActions(actions => actions.groupModel.queryTribePoint)
const points = useStoreState(state => state.groupModel.points)
const getSetting = useStoreActions(actions => actions.userModel.getSetting)
const { run, loading } = useRequest(postTribePoint, {
immediate: false,
throttleDelay: 1000,
onSuccess: () => {
showToast({ title: '领取成功' })
queryTribePoint()
getSetting()
}
})
......
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