async function sign(record: Recordable) {
if (record.state == 0) {
createMessage.success('请将url地址或二维码发给用户签约授权');
let from = await getUserSign({
companyId: record.companyId,
url: 'https://www.baidu.com/',
});
setTimeout(() => {
let open = window.open('', '');
open.document.write(`${from}`);
console.log(from);
}, 2000);
}
}