|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<header class="h-[--headerHeight] bg-primary flex items-center text-white px-[--borderWidth]"> |
|
|
|
<section class="bg-[#335AA5] px-4 py-2 rounded flex items-center gap-4"> |
|
|
|
<span>当前湿度:18%RH</span> |
|
|
|
<span>当前湿度:{{ equipmentStore.equipmentStatus.humidity }}%RH</span> |
|
|
|
<!-- <span>当前温度:18℃</span> --> |
|
|
|
</section> |
|
|
|
<Time class="ml-auto text-lg"></Time> |
|
|
@ -24,9 +24,11 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
import { useRoute, useRouter } from "vue-router"; |
|
|
|
import Time from "./Time.vue"; |
|
|
|
import { useEquipmentStatusStore } from "@/stores/equipmentStatus"; |
|
|
|
|
|
|
|
const route = useRoute(); |
|
|
|
const router = useRouter(); |
|
|
|
const equipmentStore = useEquipmentStatusStore(); |
|
|
|
|
|
|
|
function onMenuBtnClick() { |
|
|
|
if (route.path !== "/") { |
|
|
|