mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 07:19:26 +00:00
Removed redundant code and file
This commit is contained in:
parent
c9850dcbf8
commit
836b6ae3a3
2 changed files with 1 additions and 17 deletions
|
|
@ -23,7 +23,6 @@ import { RouterView, useRoute } from 'vue-router'
|
||||||
import { useDeviceStore } from './stores/device'
|
import { useDeviceStore } from './stores/device'
|
||||||
import { isLocal } from './services/ApiService'
|
import { isLocal } from './services/ApiService'
|
||||||
import AlertComp from './components/base/AlertComp.vue'
|
import AlertComp from './components/base/AlertComp.vue'
|
||||||
import { ConfigGet } from './services/ConfigService'
|
|
||||||
|
|
||||||
const device = useDeviceStore()
|
const device = useDeviceStore()
|
||||||
|
|
||||||
|
|
@ -31,14 +30,11 @@ const route = useRoute()
|
||||||
const handshake = ref(false)
|
const handshake = ref(false)
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// const port = await ConfigGet('MCRM__PORT')
|
|
||||||
// console.log(port)
|
|
||||||
|
|
||||||
// Setting device uuid from localstorage
|
// Setting device uuid from localstorage
|
||||||
// If not present in LocalStorage a new uuidV4 will be generated
|
// If not present in LocalStorage a new uuidV4 will be generated
|
||||||
device.uuid()
|
device.uuid()
|
||||||
|
|
||||||
// appHandshake()
|
appHandshake()
|
||||||
|
|
||||||
device.$subscribe(() => {
|
device.$subscribe(() => {
|
||||||
if (device.key()) handshake.value = true
|
if (device.key()) handshake.value = true
|
||||||
|
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
import axios from 'axios'
|
|
||||||
import { appUrl } from './ApiService'
|
|
||||||
|
|
||||||
export const ConfigGet = async (key) => {
|
|
||||||
console.log(window.__CONFIG__)
|
|
||||||
|
|
||||||
const config = await axios.get(appUrl() + '/config.json')
|
|
||||||
|
|
||||||
if (!config.data) return false
|
|
||||||
|
|
||||||
return config.data[key]
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue