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