export default { checkLogin(data) { return request.post("/user/login",data) }, }
/* 引入并暴露 */ export { default as account } from "./account"
import * as API from '@/api' Vue.prototype.$API = API
let result = await this.$API.account.checkLogin(this.loginForm); console.log(result);