Neoclassical Piano Montage

    yidea-jssdk-adapter
    TypeScript icon, indicating that this package has built-in type declarations

    3.6.1 • Public • Published

    安装

    npm

    npm i --save yidea-jssdk-adapter

    yarn

    yarn add yidea-jssdk-adapter

    引用

    创建一个 adapter.js 文件,内容如下

    import adapter, { VueInstaller } from "yidea-jssdk-adapter";
    import Vue from "vue";
    Vue.use(VueInstaller, { adapter });
    export default adapter;

    Vue 中使用

    this.$adapter.scanQRCode().then((res) => {
      console.log(res);
    });

    js 中使用

    import adapter from "./adapter";
    
    adapter.scanQRCode().then((res) => {
      console.log(res);
    });

    config 说明

    const config = {
      /**
       * Auth地址,必填
       */
      AUTH_URL: "",
      /**
       * 微信appid,选填
       */
      WECHAT_APPID: "",
      /**
       * 企业微信appid,选填
       */
      WEWORK_APPID: "",
      /**
       * 飞书appid,选填
       */
      FEISHU_APPID: "",
    };

    Keywords

    Install

    npm i yidea-jssdk-adapter

    DownloadsWeekly Downloads

    122

    Version

    3.6.1

    License

    ISC

    Unpacked Size

    341 kB

    Total Files

    6

    Last publish

    Collaborators

    • limengning