Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporate-culture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporate-culture-qd
Commits
efff3c48
Commit
efff3c48
authored
Apr 17, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 21402】 fix: 修复keep-alive相关bug
parent
a15edb8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
route.ts
src/router/route.ts
+1
-1
index.vue
src/views/otherUserPage/index.vue
+13
-13
No files found.
src/router/route.ts
View file @
efff3c48
...
...
@@ -108,7 +108,7 @@ export const constantsRoute = [
},
],
},
// 点进去其他用户的个人中心
// 点进去其他用户的个人中心
这里面有bug
{
path
:
'otherUserPage/:userId/:isReal'
,
name
:
'CultureOtherUserPage'
,
...
...
src/views/otherUserPage/index.vue
View file @
efff3c48
...
...
@@ -102,8 +102,7 @@
</
template
>
<
script
lang=
"tsx"
setup
>
import
{
hasOfficialAccount
,
getOtherUserData
,
getOtherUserPostData
}
from
'@/api'
import
type
{
OfficialAccountItemDto
}
from
'@/api/user/types'
import
{
getOtherUserData
,
getOtherUserPostData
}
from
'@/api'
import
dayjs
from
'dayjs'
import
{
usePageSearch
,
useNavigation
}
from
'@/hooks'
import
{
articleTypeListOptions
,
BooleanFlag
}
from
'@/constants'
...
...
@@ -137,32 +136,33 @@ const openSendMessage = () => {
isReal
:
routeIsRealFlag
.
value
,
})
}
const
{
list
,
total
,
searchParams
,
goToPage
,
changePageSize
}
=
usePageSearch
(
const
{
list
,
total
,
searchParams
,
goToPage
,
changePageSize
,
refresh
}
=
usePageSearch
(
getOtherUserPostData
,
{
defaultParams
:
{
createUserId
:
route
.
params
.
userId
as
string
,
isReal
:
+
(
route
.
params
.
isReal
as
string
),
},
immediate
:
false
,
},
)
const
officialAccountList
=
ref
<
OfficialAccountItemDto
[]
>
([])
const
getIsOfficial
=
async
()
=>
{
const
{
data
}
=
await
hasOfficialAccount
()
officialAccountList
.
value
=
data
}
const
userInfo
=
ref
<
OtherUserInfoDto
>
({}
as
OtherUserInfoDto
)
onMounted
(
async
()
=>
{
// onMounted(async () => {
// const { data } = await getOtherUserData({
// userId: route.params.userId as string,
// isReal: +(route.params.isReal as string),
// })
// userInfo.value = data
// })
onActivated
(
async
()
=>
{
const
{
data
}
=
await
getOtherUserData
({
userId
:
route
.
params
.
userId
as
string
,
isReal
:
+
(
route
.
params
.
isReal
as
string
),
})
userInfo
.
value
=
data
})
onMounted
(()
=>
{
getIsOfficial
()
refresh
()
})
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment