UNPKG

fcc-core

Version:

Fusion communication center.

17 lines (16 loc) 520 B
export default async function (xw, params) { await new Promise(async (resolve, reject) => { await xw.validate(params, { // 入参校验 monitorList: { type: 'array', required: true }, winId: { type: 'string', required: true } }) xw.exe.emit('OpenMonitorWall', params) xw.exe.once('OnOpenMonitorWall', async data => { if (data.resultCode === 0) { resolve() } else { reject(new xw.BaseException(563, '监控墙推送失败')) } }) }) }