You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- // 导入所有接口
- import api from './api'
-
- const install = Vue => {
- if (install.installed)
- return;
-
- install.installed = true;
-
- Object.defineProperties(Vue.prototype, {
- // 注意,此处挂载在 Vue 原型的 $api 对象上
- $api: {
- get() {
- return api
- }
- }
- })
- }
-
- export default install
|