Update to UIX.

This commit is contained in:
Jesse Malotaux 2025-04-12 15:31:32 +02:00
parent d373237127
commit c9850dcbf8
10 changed files with 38 additions and 16 deletions

View file

@ -23,24 +23,32 @@ import { RouterView, useRoute } from 'vue-router'
import { useDeviceStore } from './stores/device'
import { isLocal } from './services/ApiService'
import AlertComp from './components/base/AlertComp.vue'
import { ConfigGet } from './services/ConfigService'
const device = useDeviceStore()
const route = useRoute()
const handshake = ref(false)
onMounted(async () => {
onMounted(() => {
// const port = await ConfigGet('MCRM__PORT')
// console.log(port)
// Setting device uuid from localstorage
// If not present in LocalStorage a new uuidV4 will be generated
device.uuid()
const hsReq = await device.remoteHandshake()
handshake.value = hsReq
// appHandshake()
device.$subscribe(() => {
if (device.key()) handshake.value = true
})
})
async function appHandshake() {
const hsReq = await device.remoteHandshake()
handshake.value = hsReq
}
</script>
<style scoped>