UNPKG

fe-core-cli

Version:

All-in-one scaffolding, cli integrated with Vue3 ecological chain, cli of H5 page, mock template cli of Node

27 lines (24 loc) 466 B
import request from '../../axios'; /** * 登录 */ interface IResponseType<P = {}> { code?: number; status: number; msg: string; data: P; } interface ILogin { token: string; expires: number; } export const login = (username: string, password: string) => { return request<IResponseType<ILogin>>({ url: '/api/auth/login', method: 'post', data: { username, password, }, }); };