Просмотр исходного кода

fix: publishing interface parameter exception

Casper Dai 3 лет назад
Родитель
Сommit
2c9e645f92
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/api/calendar.js

+ 1 - 1
src/api/calendar.js

@@ -126,7 +126,7 @@ export function publish ({ id, type, name }, devices, options) {
   return confirm(`确定对设备 ${devices.map(device => device.name)} 发布排期 ${name}?`).then(() => {
     const data = {
       programCalendarId: id,
-      deviceId: devices.map(device => device.id)
+      deviceIds: devices.map(device => device.id)
     }
     if (type === ScheduleType.RECUR) {
       Object.assign(data, options)