diff --git a/projects/WebSPA/wwwroot/pages/iot/device/socket.html b/projects/WebSPA/wwwroot/pages/iot/device/socket.html
index 534f9df3..ab81c9c6 100644
--- a/projects/WebSPA/wwwroot/pages/iot/device/socket.html
+++ b/projects/WebSPA/wwwroot/pages/iot/device/socket.html
@@ -12,7 +12,8 @@
-
{{electricity}} kW‧h
+
{{electricity}} kW‧h
+
{{power}} W
@@ -26,7 +27,12 @@
props: ['device'],
computed: {
electricity: function () {
+ console.log('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$-electricity');
return parseFloat(getDeviceDataValue(this.device, '电量')||0).toFixed(2);
+ },
+ power: function (){
+ console.log('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$-power');
+ return parseFloat(getDeviceDataValue(this.device, '功率')||0).toFixed(2);
}
}
});