fix
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
<div class="otherUser_works_title modal_title_text">
|
||||
<div>{{$t('account.hisWorks')}}</div>
|
||||
</div>
|
||||
<Works :isScroll="false" :otherUsers="true" :userId=userId></Works>
|
||||
<Works :isScroll="false" :otherUsers="true"></Works>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -63,7 +63,9 @@ export default defineComponent({
|
||||
const router:any = useRouter()
|
||||
const store = useStore();
|
||||
let otherUsers = reactive({
|
||||
userId:'0',
|
||||
userId:computed(()=>{
|
||||
return store.state.UserHabit.userDetail.userId
|
||||
}),
|
||||
userContent:{}
|
||||
})
|
||||
let getUserDetail = (id:any)=>{
|
||||
@@ -90,7 +92,6 @@ export default defineComponent({
|
||||
})
|
||||
}
|
||||
onMounted (()=>{
|
||||
otherUsers.userId = router.currentRoute.value.query?.userId
|
||||
// alert()
|
||||
setTimeout(() => {
|
||||
getUserDetail(otherUsers.userId)
|
||||
|
||||
Reference in New Issue
Block a user