@tomorrow-catcher/vue
the vue'SDK of the tomorrow-catcher'SDK
Install
Using npm:
$ npm install --save @tomorrow-catcher/vue
or using yarn:
$ yarn add @tomorrow-catcher/vue
or using pnpm:
$ pnpm add @tomorrow-catcher/vue
Usage
Options
key
Type: string
Default: ``
the app unique key
expireDate
Type: number
Default: 0
the log expire date,the log will upload when the expireDate was setting 0.one step is millisecond.
reportUrl
Type: string
Default: ``
the log upload api url.
handlersList
Type: 'error' | 'unhandledrejection' | 'fetch' | 'xhr'[]
Default: []
the errors handler options
vue
Type: Vue Instance
Default: null
the Vue instance
beforeUpload
Type: Function
Default: ``
the log custom info factory function
beforeUpload
Type: Vue-Router Instance
Default: ``
the Vue-Router instance