Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit b66f222

Browse files
committed
update demo.
1 parent 263d400 commit b66f222

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ this.$pushCNZZ.pv(this.pageUrl);
140140
```js
141141
const { proxy } = getCurrentInstance();
142142

143-
proxy.$pushCNZZ.pv(pageUrl.value);
143+
proxy.$pushCNZZ.pv(
144+
pageUrl.value,
145+
fromUrl.value
146+
);
144147
```
145148

146149
### 手动上报事件分析
@@ -183,6 +186,7 @@ proxy.$pushCNZZ.event(
183186
category.value,
184187
action.value,
185188
label.value,
186-
value.value
189+
value.value,
190+
nodeId.value
187191
);
188192
```

demo/js/main-for-vue2.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ const app = new Vue({
4444
},
4545
methods: {
4646
pv () {
47-
this.$pushCNZZ.pv(this.pageUrl, this.fromUrl);
47+
this.$pushCNZZ.pv(
48+
this.pageUrl,
49+
this.fromUrl
50+
);
4851
},
4952
event () {
5053
this.$pushCNZZ.event(

0 commit comments

Comments
 (0)