install.js 595 Bytes
/*
 * @Author: your name
 * @Date: 2021-12-18 13:47:29
 * @LastEditTime: 2021-12-18 14:02:49
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /sdc-face/src/api/install.js
 */
import apiList from "./apiList";

const install = function(Vue) {
  if (install.installed) {
    return;
  }
  install.installed = true;
  Object.defineProperties(Vue.prototype, {
    $api: {
      get() {
        return apiList;
      }
    }
  });
};

export default {
  install
};