added show multiple switch in ui and back end

This commit is contained in:
ori agranat
2019-11-29 16:50:16 +02:00
parent 720911e5e6
commit 3ff1f56bd5
7 changed files with 23 additions and 6 deletions

View File

@@ -269,7 +269,11 @@
let p = this.$store.state.point.calculated;
let fps = this.$store.state.point.fps;
if (p !== undefined) {
return `Pitch: ${parseFloat(p['pitch']).toFixed(2)}, Yaw: ${parseFloat(p['yaw']).toFixed(2)}, Area: ${p['area'].toFixed(2)}, FPS: ${fps.toFixed(2)}`
try {
return `Pitch: ${parseFloat(p['pitch']).toFixed(2)}, Yaw: ${parseFloat(p['yaw']).toFixed(2)}, Area: ${p['area'].toFixed(2)}, FPS: ${fps.toFixed(2)}`
} catch (e) {
return ""
}
} else {
return undefined;
}