修复api
This commit is contained in:
@@ -99,7 +99,7 @@ function clean(obj: Record<string, any>) {
|
||||
}
|
||||
|
||||
const tableApi = (params: { pageIndex: number; pageSize: number }) => {
|
||||
return (Apis as any).Push.recordList({
|
||||
return (Apis as any).PushSubscription.recordList({
|
||||
params: clean({
|
||||
appKey: dataParams.value.appKey,
|
||||
interfacePath: dataParams.value.interfacePath,
|
||||
@@ -185,7 +185,7 @@ function openDetail(row: any) {
|
||||
|
||||
async function handleRetry(row: any) {
|
||||
try {
|
||||
await (Apis as any).Push.retry({ pathParams: { id: row.id }, cacheFor: null });
|
||||
await (Apis as any).PushSubscription.retry({ pathParams: { id: row.id }, cacheFor: null });
|
||||
Message.success('已重新投递,稍后在列表中查看结果');
|
||||
tableRef.value?.refreshData();
|
||||
} catch (e: any) {
|
||||
|
||||
@@ -143,7 +143,7 @@ function handleSend() {
|
||||
preview.value = null;
|
||||
sendMessage.value = '';
|
||||
(Apis as any)
|
||||
.Push.test({
|
||||
.PushSubscription.test({
|
||||
data: {
|
||||
appId: form.value.appId,
|
||||
interfacePath: form.value.interfacePath,
|
||||
|
||||
Reference in New Issue
Block a user