mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 08:25:07 +00:00

* perf: chunk index show * share response * perf: vector query * web printFinger * remove log * fix: bucket name * perf: training schema * perf: sort index
10 lines
247 B
TypeScript
10 lines
247 B
TypeScript
import FingerprintJS from '@fingerprintjs/fingerprintjs';
|
|
|
|
const fpPromise = FingerprintJS.load();
|
|
|
|
export const getUserFingerprint = async () => {
|
|
const fp = await fpPromise;
|
|
const result = await fp.get();
|
|
console.log(result.visitorId);
|
|
};
|