0.0.17 • Published 10 months ago

@sdc-monitor/vue v0.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@sdc-monitor/vue

⚠️ attention

If you want to import in weixin miniprograme,please replace @sdc-monitor/browser to @miotjs/wx-mini

🛠️ Install

# using npm
npm i @sdc-monitor/vue @sdc-monitor/browser
# using yarn
yarn add @sdc-monitor/vue @sdc-monitor/browser

read the mito-doc to konw more info

🥳 Usage

Vue2.X

// main.js
import Vue from 'vue'
import { init } from '@sdc-monitor/browser'
import { vuePlugin } from '@sdc-monitor/vue'

// multiple instances
const MitoInstance = init({
  // set debug true to convenient debugger in dev,set false in prod
  debug:true,
  vue: Vue,
  dsn: 'https://test.com/yourInterface',
  maxBreadcrumbs: 100
},[vuePlugin])

Vue3.x

// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import { init } from "@sdc-monitor/browser";
import { vuePlugin } from "@sdc-monitor/vue";

const app = createApp(App)
const MitoInstance = init({
  // set debug true to convenient debugger in dev,set false in prod
  debug:true,
  vue: app,
  dsn: 'https://test.com/yourInterface',
  maxBreadcrumbs: 100
},[vuePlugin])
0.0.17

10 months ago

0.0.16

10 months ago

0.0.15

10 months ago

0.0.14

11 months ago

0.0.13

11 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.1

11 months ago