mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-21 06:38:57 +08:00
refactor(http): 统一HTTP方法命名并添加消息提示功能
将大写的HTTP方法改为小写命名以提高一致性 添加带消息提示的HTTP方法变体
This commit is contained in:
13
apps/web-antd/types/alova.d.ts
vendored
13
apps/web-antd/types/alova.d.ts
vendored
@@ -49,10 +49,15 @@ declare module 'alova' {
|
||||
* 添加withMessage方法 用于success弹窗
|
||||
*/
|
||||
interface Alova {
|
||||
GetWithMessage: GetType;
|
||||
PostWithMessage: PostType;
|
||||
PutWithMessage: PutType;
|
||||
DeleteWithMessage: DeleteType;
|
||||
get: GetType;
|
||||
post: PostType;
|
||||
put: PutType;
|
||||
delete: DeleteType;
|
||||
// 添加withMessage方法 用于弹出message提示
|
||||
getWithMsg: GetType;
|
||||
postWithMsg: PostType;
|
||||
putWithMsg: PutType;
|
||||
deleteWithMsg: DeleteType;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user