|
|
|
@ -64,14 +64,16 @@
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if (MessageArr.length) {
|
|
|
|
|
let txt = `有${MessageArr.length}个待上线:`
|
|
|
|
|
for (let i = 0; i < 5; i++) {
|
|
|
|
|
if (MessageArr[i]) {
|
|
|
|
|
txt = i == 0 ? `${txt} ${MessageArr[i]}` : `${txt},\n${MessageArr[i]}`
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// let txt = `有${MessageArr.length}个待上线:`
|
|
|
|
|
let txt = `有${MessageArr.length}个待上线.`
|
|
|
|
|
// for (let i = 0; i < 5; i++) {
|
|
|
|
|
// if (MessageArr[i]) {
|
|
|
|
|
// txt = i == 0 ? `${txt} ${MessageArr[i]}` : `${txt},\n${MessageArr[i]}`
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
notification.warning({
|
|
|
|
|
message: MessageArr.length > 5 ? `${txt}...` : txt,
|
|
|
|
|
// message: MessageArr.length > 5 ? `${txt}...` : txt,
|
|
|
|
|
message: txt,
|
|
|
|
|
duration: 6000,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|