Update to generate UUID on startup and store in or get from localstorage.

This commit is contained in:
Jesse Malotaux 2025-03-23 18:20:13 +01:00
parent 91dadd9bd1
commit 2fe38fbe1f
4 changed files with 83 additions and 1 deletions

View file

@ -9,7 +9,17 @@
<script setup>
import MainMenu from '@/components/base/MainMenu.vue'
import { onMounted } from 'vue'
import { RouterView } from 'vue-router'
import { useDeviceStore } from './stores/device'
const device = useDeviceStore()
onMounted(() => {
// Setting device uuid from localstorage
// If not present in LocalStorage a new uuidV4 will be generated
device.uuid()
})
</script>
<style scoped>