Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
source-trace-manage-go
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tracing
source-trace-manage-go
Commits
e5df757d
Commit
e5df757d
authored
Apr 25, 2021
by
zL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改处理数据函数
parent
9e10b9a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Template.ts
src/plugins/Template.ts
+4
-4
No files found.
src/plugins/Template.ts
View file @
e5df757d
...
@@ -60,7 +60,7 @@ function formatProperty2Api(property: Property): TemplateProperty | TmplSelectPr
...
@@ -60,7 +60,7 @@ function formatProperty2Api(property: Property): TemplateProperty | TmplSelectPr
if
(
property
.
value
&&
property
.
value
!==
''
)
{
if
(
property
.
value
&&
property
.
value
!==
''
)
{
let
dd
=
Array
.
from
(
property
.
value
);
let
dd
=
Array
.
from
(
property
.
value
);
data
=
dd
.
map
((
value
:
any
)
=>
({
data
=
dd
.
map
((
value
:
any
)
=>
({
format
:
"hash
(hash)
"
,
format
:
"hash"
,
type
:
"image"
,
type
:
"image"
,
value
:
value
.
hash
||
''
value
:
value
.
hash
||
''
}))
}))
...
@@ -79,7 +79,7 @@ function formatProperty2Api(property: Property): TemplateProperty | TmplSelectPr
...
@@ -79,7 +79,7 @@ function formatProperty2Api(property: Property): TemplateProperty | TmplSelectPr
if
(
property
.
value
)
{
if
(
property
.
value
)
{
let
dd
=
Array
.
from
(
property
.
value
);
let
dd
=
Array
.
from
(
property
.
value
);
data
=
(
dd
as
any
).
map
((
value
:
any
)
=>
({
data
=
(
dd
as
any
).
map
((
value
:
any
)
=>
({
format
:
"hash
(hash)
"
,
format
:
"hash"
,
type
:
"file"
,
type
:
"file"
,
value
:
value
value
:
value
}))
}))
...
@@ -122,7 +122,7 @@ function formatProperty2Api(property: Property): TemplateProperty | TmplSelectPr
...
@@ -122,7 +122,7 @@ function formatProperty2Api(property: Property): TemplateProperty | TmplSelectPr
if
(
property
.
value
)
{
if
(
property
.
value
)
{
let
dd
=
Array
.
from
(
property
.
value
);
let
dd
=
Array
.
from
(
property
.
value
);
data
=
(
dd
as
any
).
map
((
value
:
any
)
=>
({
data
=
(
dd
as
any
).
map
((
value
:
any
)
=>
({
format
:
"hash
(hash)
"
,
format
:
"hash"
,
type
:
"media"
,
type
:
"media"
,
value
:
value
value
:
value
}))
}))
...
@@ -142,7 +142,7 @@ function formatProperty2Api(property: Property): TemplateProperty | TmplSelectPr
...
@@ -142,7 +142,7 @@ function formatProperty2Api(property: Property): TemplateProperty | TmplSelectPr
if
(
property
.
value
)
{
if
(
property
.
value
)
{
let
dd
=
Array
.
from
(
property
.
value
);
let
dd
=
Array
.
from
(
property
.
value
);
data
=
(
dd
as
any
).
map
((
value
:
any
)
=>
({
data
=
(
dd
as
any
).
map
((
value
:
any
)
=>
({
format
:
"hash
(hash)
"
,
format
:
"hash"
,
type
:
"media"
,
type
:
"media"
,
value
:
value
value
:
value
}))
}))
...
...
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