feat: frontend & main controller

This commit is contained in:
Jetson
2023-01-14 21:11:36 +08:00
parent 77ea4bb6a0
commit 514d061e7e
2 changed files with 5 additions and 5 deletions

View File

@@ -77,9 +77,9 @@
update(data) {
let state = data.state;
if (state == "identified") this.type = data.type;
this.state = state;
if (state == "identify") this.imageUrl = `/photo?${Date.now()}`
this.state = state;
},
async polling() {
let res, data;