代码提交
This commit is contained in:
17
Store_vue/api/modules/auth.js
Normal file
17
Store_vue/api/modules/auth.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import { request, requestWithRetry } from '../config'
|
||||
|
||||
// 认证相关API
|
||||
export const authApi = {
|
||||
// 用户登录
|
||||
login: (account, password) => {
|
||||
return request({
|
||||
url: '/v1/auth/login',
|
||||
method: 'POST',
|
||||
data: {
|
||||
account: account,
|
||||
password: password,
|
||||
typeId: 2 // 固定为2
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user