diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts index ce1f878..0fce9d7 100644 --- a/src/api/jyh/index.ts +++ b/src/api/jyh/index.ts @@ -19,7 +19,7 @@ export function releasePage(data): Promise { }); } -// 获取用户信息 +// 获取邀请列表 export function getInviteListData(): catchRt { return reqCatchV2(() => request({ url: '/api/v1/group/member/invite/list', @@ -29,7 +29,7 @@ export function getInviteListData(): catchRt { })); } -// 获取用户信息 +// 处理邀请 export function acceptInvite(params): catchRt { return reqCatchV2(() => request({ url: '/api/v1/group/member/invite/accept', @@ -39,3 +39,14 @@ export function acceptInvite(params): catchRt { customError: true })); } + +// 发送订阅 +export function subscribeSoftware(params): catchRt { + return reqCatchV2(() => request({ + url: '/api/v1/alert/subscribe', + method: 'post', + data: params, + }, { + customError: true + })); +} diff --git a/src/views/Jyh/Version/Detail/SubscriptionModal.vue b/src/views/Jyh/Version/Detail/SubscriptionModal.vue index ba52e18..ee01069 100644 --- a/src/views/Jyh/Version/Detail/SubscriptionModal.vue +++ b/src/views/Jyh/Version/Detail/SubscriptionModal.vue @@ -20,24 +20,49 @@