forked from drone/command-center-dashboard

chenyao
2025-04-12 df4e3452ecdc510faa09c7310ba4857ed432553d
src/components/CommonWeather.vue
@@ -6,7 +6,7 @@
         <img src="@/assets/images/home/homeLeft/tq.png" alt="" />
         <span class="tq">{{ weather }}</span>
         <span class="tq">风速:{{ windVelocity }} </span>
         <span v-if="flylevel > 6" :class="[isFly === '建议飞行' ? 'qk' : isFly === '禁止飞行' ? 'redqk' : 'yellowqk']">{{
         <span v-if="flylevel >= 5" :class="[isFly === '适合飞行' ? 'qk' : isFly === '禁止飞行' ? 'redqk' : 'yellowqk']">{{
            isFly
         }}</span>
      </div>
@@ -37,7 +37,9 @@
      weather.value = res.data.data.weather
      isFly.value = res.data.data.flightAdvice
      windVelocity.value = res.data.data.windPower
      flylevel.value = res.data.data.adcode.length
      flylevel.value = res.data.data.adcode.replace(/0+$/, "").length
   })
}
@@ -57,7 +59,7 @@
<style scoped lang="scss">
.time-weather {
   margin-left: 45px;
   width: 350px;
   // width: 350px;
   font-size: 14px;
   height: 36px;
   line-height: 36px;