| | |
| | | }); |
| | | }; |
| | | |
| | | |
| | | const setAddUser = async (val: any | number | (string | number)[]) => { |
| | | console.log(val); |
| | | const res = await createUser(val) |
| | |
| | | |
| | | } |
| | | } |
| | | import FingerprintJS from '@fingerprintjs/fingerprintjs' |
| | | |
| | | onMounted(async () => { |
| | | |
| | | FingerprintJS.load().then(fp => { |
| | | fp.get().then(result => { |
| | | const visitorId = result.visitorId; |
| | | console.log(visitorId,'浏览器指纹识别码'); |
| | | }); |
| | | }); |
| | | |
| | | try { |
| | | // 使用fetch API获取当前IP地址 |
| | | await fetch('https://api.ipify.org/?format=json') |
| | |
| | | console.log(error); |
| | | } |
| | | router.push('index') |
| | | // getCode(); |
| | | // initTenantList(); |
| | | // getLoginData(); |
| | | |
| | | }); |
| | | </script> |
| | | |