| | |
| | | } |
| | | |
| | | onMounted(() => { |
| | | // var index = 0 |
| | | setInterval(() => { |
| | | streams.push({ |
| | | // index: index, |
| | | time: dayjs().format('YYYY-MM-DD HH:mm:ss'), |
| | | user: users[parseInt(Math.random() * users.length)], |
| | | obj: objs[parseInt(Math.random() * objs.length)], |
| | | event: events[parseInt(Math.random() * events.length)] |
| | | }) |
| | | scrollToBottom() |
| | | // index++ |
| | | }, 10000) |
| | | // setInterval(() => { |
| | | // streams.push({ |
| | | // time: dayjs().format('YYYY-MM-DD HH:mm:ss'), |
| | | // user: users[parseInt(Math.random() * users.length)], |
| | | // obj: objs[parseInt(Math.random() * objs.length)], |
| | | // event: events[parseInt(Math.random() * events.length)] |
| | | // }) |
| | | // scrollToBottom() |
| | | // }, 10000) |
| | | }) |
| | | </script> |