1.0.2 • Published 3 years ago

zhs-monitor v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago
  • zhs平台共享课接入不同接口网关弹窗配置

配置

  • 对于使用前端Vue2.0:

main.js中配置

import Vue from 'vue'; import name from '***'; import zhsMonitor from 'zhs-monitor'; // 引入对应的.vue文件

const componentList = {type: 'capture', component: abnormalBehavior} window.zhsMon = zhsMonitor(componentList, Vue); // init

new Vue({}); // 一定要在new Vue之前init

在需要调用的地方:

const tag = 'capture'; window.zhsMon._extends(tag); // tag是你要触发的弹窗类型

  • 对于h5调用app:

main.js中的配置同上

在需要调用的地方: const tag = 'capture'; window.zhsMon._callBacks(tag); // tag是你要触发的弹窗类型

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago