install.js 276 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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 }