Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
npm
/
gltracker
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 14d40c3e
authored
Jul 15, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加自定义私有属性
1 parent
7944b64d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
src/main.js
src/main.js
View file @
14d40c3
...
@@ -173,7 +173,6 @@ const uploadStroageData = (params = {}, option) => {
...
@@ -173,7 +173,6 @@ const uploadStroageData = (params = {}, option) => {
// eslint-disable-next-line func-names
// eslint-disable-next-line func-names
kit
.
buildData
=
function
(
trackParam
)
{
kit
.
buildData
=
function
(
trackParam
)
{
const
data
=
{}
const
data
=
{}
console
.
log
(
trackParam
);
if
(
trackParam
.
event
==
'pv'
)
{
if
(
trackParam
.
event
==
'pv'
)
{
Object
.
assign
(
data
,
trackParam
.
properties
,{
event
:
'pv'
})
Object
.
assign
(
data
,
trackParam
.
properties
,{
event
:
'pv'
})
}
else
{
}
else
{
...
@@ -183,6 +182,10 @@ kit.buildData = function (trackParam) {
...
@@ -183,6 +182,10 @@ kit.buildData = function (trackParam) {
event
:
trackParam
.
event
,
event
:
trackParam
.
event
,
pageName
:
trackParam
.
properties
.
pageName
pageName
:
trackParam
.
properties
.
pageName
}
}
if
(
trackParam
.
properties
.
private
){
Object
.
assign
(
obj
,
trackParam
.
properties
.
private
)
delete
trackParam
.
properties
.
private
}
data
.
exta
=
JSON
.
stringify
(
trackParam
.
properties
)
data
.
exta
=
JSON
.
stringify
(
trackParam
.
properties
)
Object
.
assign
(
data
,
obj
)
Object
.
assign
(
data
,
obj
)
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment