| | |
| | | const commonList = common ? eval(common) : []; |
| | | const pointList = point ? eval(point) : []; |
| | | const mapItemList = [...commonList, ...pointList]; |
| | | |
| | | |
| | | mapItemList.forEach(item => { |
| | | if (item.type !== DEVICE_TYPE.AGV) { |
| | | const sprite = Tool.generateSprite(item.type); |
| | |
| | | console.error(error.message); |
| | | }) |
| | | } |
| | | |
| | | export const getFakeSign = async (param, callback) => { |
| | | await request.get('/fake/sign').then((res) => { |
| | | const { code, msg, data } = res.data; |
| | | if (code === 200) { |
| | | if (callback) { |
| | | callback(data) |
| | | } |
| | | } else { |
| | | notify.error(msg); |
| | | } |
| | | }).catch((error) => { |
| | | notify.error(error.message); |
| | | console.error(error.message); |
| | | }) |
| | | } |