Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporateCulture-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
王立鹏
corporateCulture-qd
Commits
15014302
Commit
15014302
authored
Mar 06, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 20331】 perf: 优化返回组件按钮
parent
14c314af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
index.vue
src/components/common/BackButton/index.vue
+5
-0
index.vue
src/views/userPage/index.vue
+1
-1
No files found.
src/components/common/BackButton/index.vue
View file @
15014302
...
...
@@ -23,9 +23,14 @@
</
template
>
<
script
setup
lang=
"ts"
>
const
{
backHomePage
=
false
}
=
defineProps
<
{
backHomePage
?:
boolean
}
>
()
const
router
=
useRouter
()
const
handleBack
=
()
=>
{
if
(
backHomePage
)
return
router
.
push
(
'/'
)
if
(
window
.
history
.
length
>
1
)
{
router
.
back
()
}
else
{
...
...
src/views/userPage/index.vue
View file @
15014302
<
template
>
<div
class=
"min-h-screen bg-gray-50 rounded-lg relative"
>
<BackButton
/>
<BackButton
backHomePage
/>
<!-- 顶部背景区域 -->
<div
class=
"box relative h-200px bg-gradient-to-r from-purple-400 via-pink-300 to-blue-300"
>
<!-- 顶部操作按钮 -->
...
...
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