Skip to content

Commit

Permalink
⚡change trackEnable default value
Browse files Browse the repository at this point in the history
  • Loading branch information
宋慧武 committed Apr 15, 2019
1 parent 4dfa8d0 commit a35dfa0
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: 宋慧武
* @Date: 2019-03-06 17:49:29
* @Last Modified by: 宋慧武
* @Last Modified time: 2019-04-15 15:49:50
* @Last Modified time: 2019-04-15 16:55:12
*/
import * as hooks from "./hooks";

Expand All @@ -14,18 +14,13 @@ export default class VTrack {
// 保存当前点击的元素
static target = null;
// Vue.use 将执行此方法
static install(
Vue,
{
trackEvents,
trackAction,
trackEnable = {
UVPV: true,
TONP: true
}
}
) {
static install(Vue, { trackEvents, trackAction, trackEnable = {} }) {
const self = this;
trackEnable = {
UVPV: false,
TONP: false,
...trackEnable
};
const TRACK_TONP = entertime => {
if (trackEnable.TONP) {
trackEvents.TONP({
Expand Down

0 comments on commit a35dfa0

Please sign in to comment.