From 04c520dc6c4bdf07e7d155afe2a5eef5dbff104e Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Thu, 24 Sep 2020 15:46:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/api/index.ts b/src/api/index.ts index f578d7e..cd8b1f2 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,10 +1,20 @@ import { get, post } from './base' import { AxiosPromise } from 'axios' +/** + * 请求用户信息 + */ + export function getinfo(): Promise{ return get("a") } -export function seninfo(data: object | undefined): Promise{ +/** + * 提交修改之后的用户信息 + * @param data + * + */ + +export function seninfo(data: object): Promise{ return post("b",data) }