update 1.4.2

main
wwl 2024-03-20 15:32:23 +08:00
parent 3cf19165a4
commit 0206b16e3b
1 changed files with 4 additions and 4 deletions

View File

@ -31,12 +31,12 @@ export default function detail () {
autoLogin: true,
})
useDidShow(() => {
getActiveDetail()
}, [])
// useDidShow(() => {
// }, [])
useEffect(() => {
if (isLogin && userInfo) {
getActiveDetail()
setState(draft => {
draft.formInfo = {
username: userInfo.username,
@ -44,7 +44,7 @@ export default function detail () {
}
})
}
}, [userInfo])
}, [userInfo, isLogin])
const getActiveDetail = async () => {
const { id: activity_id, alwaysBackUrl } = $instance.router.params