Browse Source

eslint 验证错误

master
王梦远 2 weeks ago
parent
commit
5e6a3d1703
  1. 5
      src/components/home/Environment.vue

5
src/components/home/Environment.vue

@ -43,12 +43,11 @@ const imgs: Record<string, any> = {
WirelessExtSensor: homeProbe2,
}
const titles = {
const titles: Record<string, any> = {
Internal: '仓内',
WiredExtSensor: '外接传感器',
WirelessExtSensor: '无线传感器',
}
/**
* @hook 生命周期钩子 - 组件挂载完成时执行
* @description 可在此处添加初始化逻辑当前为空实现
@ -61,7 +60,7 @@ onMounted(() => {
<template>
<div class="box">
<div class="title">
<img :src="imgs[envParams.type] || homeInside"> {{ titles[envParams.type] }}
<img :src="imgs[envParams.type].img || homeInside" alt=""> {{ titles[envParams.type] }}
</div>
<div style="display: flex; flex-direction: column; justify-content: flex-end">
<div class="env-row odd">

Loading…
Cancel
Save