<template>
    <el-config-provider :locale="zhCn">
        <router-view></router-view>
    </el-config-provider>
</template>

<script lang="ts" setup>
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import useSetTheme from '@/utils/setTheme'
import { onMounted } from 'vue'
useSetTheme()
onMounted(async () => {
    const response = await fetch('/')
    const WebSocketUrl:any = response.headers.get('X-WebSocket-Url')
    const MqttUrl:any = response.headers.get('X-MqttUrl-Url')
    localStorage.setItem('WebSocketUrl', WebSocketUrl)
    localStorage.setItem('MqttUrl', MqttUrl)
})
</script>

<style lang="scss">
/* Your SCSS styles here */
</style>
