@forchange/fundebug-vue
在vue项目中接入(fundebug)[https://docs.fundebug.com/notifier/javascript/framework/vuejs.html]
Last updated 4 months ago by forchange-fe .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @forchange/fundebug-vue 
SYNC missed versions from official npm registry.

Fundebug

在vue项目中接入 fundebug

usage

import Vue from 'vue'
import { initFundebug } from '@forchange/fundebug-vue'

initFundebug(Vue, {
  apikey: "API-KEY"
})

"API-KEY"找fundebug管理人员创建对应的项目,并获得项目对应的key。

notes

  • 接入时区分环境,开发环境运行项目时建议不初始化fundebug
  • 默认的过滤规则,初始化传参的filters类型为数组时会与默认规则合并,传递一个函数时,默认规则会以以下形式作为参数传入,自行修改后将所有值并入返回数组中。
{
  resStatus: {
    res: {
      status: /^(401|0)$/
    }
  },
  unhandledRejection: {
    type: /^unhandledrejection$/,
    // 过滤由于 401 等引起的一系列 promise 错误
    message: {
      status: /^(4|5)\d\d$/
    }
  },
  resourceError: {
    type: /^resourceError$/
  },
  vendorError: {
    type: /^uncaught$/,
    fileName: /vendor/
    // 插件黑盒错误
  }
}

Current Tags

  • 1.0.2                                ...           latest (4 months ago)

3 Versions

  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           8 months ago
  • 1.0.0                                ...           8 months ago
Maintainers (2)
Downloads
Today 3
This Week 10
This Month 10
Last Day 7
Last Week 26
Last Month 154
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |