Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
aaedfb07
Commit
aaedfb07
authored
Nov 25, 2025
by
zhuzhequan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复podcn图片显示问题
parent
0eabaffd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
14 deletions
+27
-14
src/views/order/podCN/index.vue
+27
-14
No files found.
src/views/order/podCN/index.vue
View file @
aaedfb07
...
@@ -403,7 +403,7 @@
...
@@ -403,7 +403,7 @@
</ElFormItem>
</ElFormItem>
<ElFormItem>
<ElFormItem>
<span>
<span>
<ElButton
type=
"primary"
@
click=
"search"
ref=
"searchBtnRef
"
<ElButton
ref=
"searchBtnRef"
type=
"primary"
@
click=
"search
"
>
查询
</ElButton
>
查询
</ElButton
>
>
</span>
</span>
...
@@ -5150,20 +5150,33 @@ watch(
...
@@ -5150,20 +5150,33 @@ watch(
(
newData
)
=>
{
(
newData
)
=>
{
if
(
!
newData
?.
length
)
return
if
(
!
newData
?.
length
)
return
newData
.
forEach
((
order
)
=>
{
newData
.
forEach
((
order
)
=>
{
// 使用可选链和空值合并简化判断
const
item
=
order
as
ProductList
order
.
productList
?.
forEach
((
product
)
=>
{
if
(
item
.
imageAry
){
if
(
!
product
.
previewImgs
&&
product
.
imageAry
)
{
if
(
item
.
imageAry
.
startsWith
(
'http'
)){
try
{
item
.
imageAry
=
JSON
.
stringify
(
item
.
imageAry
.
split
(
','
).
map
(
e
=>
{
product
.
previewImgs
=
return
{
JSON
.
parse
(
product
.
imageAry
)?.
filter
(
url
:
e
(
el
:
{
title
:
string
}
)
=>
el
.
title
,
}
)
||
[]
}
))
}
catch
(
error
)
{
console
.
error
(
'JSON解析失败:'
,
error
)
product
.
previewImgs
=
[]
}
}
}
}
)
}
if
(
order
.
productList
){
// 使用可选链和空值合并简化判断
order
.
productList
?.
forEach
((
product
)
=>
{
if
(
!
product
.
previewImgs
&&
product
.
imageAry
)
{
try
{
product
.
previewImgs
=
JSON
.
parse
(
product
.
imageAry
)?.
filter
(
(
el
:
{
title
:
string
}
)
=>
el
.
title
,
)
||
[]
}
catch
(
error
)
{
console
.
error
(
'JSON解析失败:'
,
error
)
product
.
previewImgs
=
[]
}
}
}
)
}
}
)
}
)
}
,
}
,
{
deep
:
true
,
immediate
:
true
}
,
// 添加immediate确保初始化时执行
{
deep
:
true
,
immediate
:
true
}
,
// 添加immediate确保初始化时执行
...
...
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