canvas
This commit is contained in:
@@ -53,3 +53,28 @@ export const areaControl = (code, option) => {
|
||||
}
|
||||
return res
|
||||
}
|
||||
export const queryDevice = (t) => {
|
||||
let res = {}
|
||||
if (t === 0) {
|
||||
res = {
|
||||
data: {car1: {x: 105, y: 312, angle: 'up'}}
|
||||
}
|
||||
} else if (t === 1) {
|
||||
res = {
|
||||
data: {car1: {x: 105, y: 262, angle: 'up'}}
|
||||
}
|
||||
} else if (t === 2) {
|
||||
res = {
|
||||
data: {car1: {x: 105, y: 202, angle: 'up'}}
|
||||
}
|
||||
} else if (t === 3) {
|
||||
res = {
|
||||
data: {car1: {x: 105, y: 262, angle: 'down'}}
|
||||
}
|
||||
} else if (t === 4) {
|
||||
res = {
|
||||
data: {car1: {x: 105, y: 312, angle: 'down'}}
|
||||
}
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user