mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-24 13:04:57 +08:00
25 lines
615 B
Vue
25 lines
615 B
Vue
![]() |
<template>
|
||
|
<el-timeline>
|
||
|
<el-timeline-item v-for="(item, index) in activities" :key="index" :timestamp="item.time">
|
||
|
{{ item.title + '-' + item.ip }}
|
||
|
</el-timeline-item>
|
||
|
</el-timeline>
|
||
|
</template>
|
||
|
|
||
|
<script lang='ts' setup>
|
||
|
import { onMounted, reactive, ref, toRefs, watch } from 'vue'
|
||
|
import { dateFormater } from '@/utils/date-util';
|
||
|
|
||
|
const activities: any = []
|
||
|
|
||
|
while (activities.length < 10) {
|
||
|
activities.push({
|
||
|
time: dateFormater('yyyy-MM-dd HH:mm:ss'),
|
||
|
title: '登录成功',
|
||
|
ip: '127.0.0.1'
|
||
|
})
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang='scss' scoped></style>
|