Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
33304d5b
Commit
33304d5b
authored
Aug 04, 2025
by
weishengfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(views): 优化 My.vue 文件中的 babyId 获取逻辑
- 在寻找 selected 宝宝信息时,添加了对 allBabyBaseInfo 的空值合并操作 - 提高了代码的健壮性和可读性
parent
2c2a37a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
My.vue
views/My.vue
+1
-1
No files found.
views/My.vue
View file @
33304d5b
...
@@ -421,7 +421,7 @@ onMounted(async () => {
...
@@ -421,7 +421,7 @@ onMounted(async () => {
hideLoading
();
hideLoading
();
babyId
.
value
=
userStore
.
babyInfo
?.
allBabyBaseInfo
.
find
(
babyId
.
value
=
userStore
.
babyInfo
?.
allBabyBaseInfo
?
.
find
(
(
item
)
=>
item
.
selected
(
item
)
=>
item
.
selected
)?.
id
;
)?.
id
;
...
...
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