222版,修改签名的js支持位置,相应的导入地址

This commit is contained in:
yy2205 2025-06-18 09:16:56 +08:00
parent cb306ce1a2
commit ea19730b10

View File

@ -3,7 +3,7 @@ import axios from 'axios'
export const loadUKeySdk = () => {
return new Promise<void>((resolve, reject) => {
const script = document.createElement('script')
script.src = '/src/utils/sdk.min.v1.0.0.js'
script.src = '/sdk.min.v1.0.0.js'
script.type = 'text/javascript'
// 确保 window 对象已准备好
@ -36,7 +36,6 @@ const downloadPdf = (data: any, filename: string = 'signed.pdf') => {
}
const uploadPdf = async (byteArray: number[], filename: string = 'signed.pdf') => {
console.log(router)
// return
try {
// 将字节数组转换为逗号分隔的字符串