@yehao-tools/vue
v3.0.1
Published
A SDK for monitoring Vue errors
Downloads
1
Readme
@okay/monitor-vue
🛠️ Install
# using npm
npm i @okay/monitor-vue @okay/monitor-browser
# using yarn
yarn add @okay/monitor-vue @okay/monitor-browser
🥳 Usage
Vue2.X
// main.js
import Vue from 'vue'
import { init } from '@okay/monitor-browser'
import { vuePlugin } from '@okay/monitor-vue'
const Monitor = init({
vue: Vue,
},[vuePlugin])
Vue3.x
// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import { init } from '@okay/monitor-browser'
import { vuePlugin } from '@okay/monitor-vue'
const app = createApp(App)
const Monitor = init({
vue: app,
},[vuePlugin])