Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

glsx-business / operation-web-project

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • operation-web-project
  • src
  • http
  • index.js
  • jack's avatar
    项目初始化 · f141c3bc
    jack committed Aug 11, 2020
    f141c3bc
index.js 330 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// 倒入所有接口

import apiList from './interface.js'

const install = Vue => {
	if (install.installed)
		return;
	install.installed = true;
	Object.defineProperties(Vue.prototype, {
		// 注意哦,此处挂载在 Vue 原型的 $api 对象上
		$api: {
			get() {
				return apiList
			}
		}
	})
}

export default install