修复登录报错

This commit is contained in:
2026-07-27 16:30:34 +08:00
parent abfa8e0cae
commit 278532cdad
3 changed files with 21 additions and 8 deletions

View File

@@ -12,11 +12,12 @@ export function index() {
})
}
export function login(method: 'get' | 'post', params: object = {}) {
export function login(method: 'get' | 'post', params: object = {}, axiosConfig: Record<string, unknown> = {}) {
return createAxios({
url: url + 'login',
data: params,
method: method,
...axiosConfig,
})
}