@talkwed-mito/vue
TypeScript icon, indicating that this package has built-in type declarations

3.1.6 • Public • Published

@talkwed-mito/vue

⚠️ attention

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

🛠️ Install

# using npm
npm i @talkwed-mito/vue @talkwed-mito/browser
# using yarn
yarn add @talkwed-mito/vue @talkwed-mito/browser

read the mito-doc to konw more info

🥳 Usage

Vue2.X

// main.js
import Vue from 'vue'
import { init } from '@talkwed-mito/browser'
import { vuePlugin } from '@talkwed-mito/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 "@talkwed-mito/browser";
import { vuePlugin } from "@talkwed-mito/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])

Readme

Keywords

Package Sidebar

Install

npm i @talkwed-mito/vue

Weekly Downloads

8

Version

3.1.6

License

MIT

Unpacked Size

96.9 kB

Total Files

10

Last publish

Collaborators

  • aheadcn