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.
18 lines
308 B
18 lines
308 B
|
|
// 创建 User 模块方法,方法内的方法共享 vm 对象
|
|
let Login = (vm)=>{
|
|
return {
|
|
|
|
login:(params = {}) => {
|
|
return vm.$u.post('login/false', params)
|
|
},
|
|
succes:(params = {}) => {
|
|
return vm.$u.post('login/succes', params)
|
|
},
|
|
|
|
|
|
}
|
|
}
|
|
|
|
// 抛出当前模块
|
|
export default Login
|