diff --git a/fe/index.html b/fe/index.html index 558b105..5d2a672 100644 --- a/fe/index.html +++ b/fe/index.html @@ -9,7 +9,8 @@ href="https://fonts.bunny.net/css?family=fira-code:300,500,700|roboto:100,300,700" rel="stylesheet" /> - Vite + Vue + Macrame +
diff --git a/fe/src/App.vue b/fe/src/App.vue index ff71d33..bd9ef4b 100644 --- a/fe/src/App.vue +++ b/fe/src/App.vue @@ -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 +}