政策下载功能开发
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
冯辉
2026-07-08 21:32:44 +08:00
parent 0e17534c55
commit 0390807e6a
7 changed files with 127 additions and 4 deletions

View File

@@ -71,3 +71,12 @@ export async function uploadPolicyFile(file: File) {
data: formData,
});
}
// 导出/下载政策
export async function exportPolicy(id: number | string) {
return request('/api/cms/policyInfo/exportUtil', {
method: 'GET',
params: { id },
responseType: 'blob',
});
}