urlCan.ts 226 B

123456789101112
  1. export const urlCanRes = () => {
  2. let res: any = ''
  3. const urlAll = window.location.href
  4. const arr = urlAll.split('?id=')
  5. if (arr && arr.length >= 2) {
  6. const temp = Number(arr[1])
  7. res = temp
  8. }
  9. return res
  10. }