【发布时间】:2021-08-27 09:26:12
【问题描述】:
我在 Nuxt 项目中使用了指纹模块,我是前端框架的新手。
我可以在控制台中获取用户指纹码,但我不能使用 VuexStore 实例。
if (process.browser) {
const fpPromise = FingerprintJS.load();
(async () => {
// Get the visitor identifier when you need it.
const fp = await fpPromise
const result = await fp.get()
// This is the visitor identifier:
const visitorId = result.visitorId
console.log(visitorId)
})()
}
如何在 visitorId 的实例中使用 vuexStore?
【问题讨论】:
标签: javascript node.js vue.js nuxt.js fingerprint