export const urlCanRes = () => { let res: any = '' const urlAll = window.location.href const arr = urlAll.split('?id=') if (arr && arr.length >= 2) { const temp = Number(arr[1]) res = temp } return res }