+ computed: {
+ temperature: function () {
+ if (!this.temp) return "";
+
+ let unit = "K";
+ if (this.item.units === "metric") {
+ unit = "°C";
+ } else if (this.item.units === "imperial") {
+ unit = "°F";
+ }
+ return `${this.temp} ${unit}`;
+ },
+ },