Archived
forked from admin/userbase
This commit is contained in:
@@ -217,7 +217,7 @@ function doSync(interfacePath: string, loadingRef: Ref<boolean>, name: string):
|
||||
}
|
||||
loadingRef.value = true;
|
||||
return (Apis as any)
|
||||
.Push.test({
|
||||
.PushSubscription.test({
|
||||
data: { appId: props.appId, interfacePath, targetIds: null },
|
||||
cacheFor: null,
|
||||
})
|
||||
|
||||
@@ -85,7 +85,7 @@ function clean(obj: Record<string, any>) {
|
||||
}
|
||||
|
||||
const tableApi = (params: { pageIndex: number; pageSize: number }) => {
|
||||
return (Apis as any).OperationLog.list({
|
||||
return (Apis as any).SysOperationLog.operationLogList({
|
||||
params: clean({
|
||||
keyword: dataParams.value.keyword?.trim() || undefined,
|
||||
success: dataParams.value.success,
|
||||
|
||||
@@ -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