<template>
    <el-timeline>
        <el-timeline-item v-for="(item, index) in activities" :key="index" :timestamp="item.createTime">
            {{ item.title + '-' + item.remoteAddr }}
        </el-timeline-item>
    </el-timeline>
</template>

<script lang='ts' setup>
import {onMounted, ref} from 'vue'
import * as logManageApi from "@/api/log-manage";

const activities = ref([] as any);

onMounted(function () {
	getLogList();
});

function getLogList() {
	logManageApi.getPage(0, 100).then((res: any) => {
		if (res.code == 0) {
			activities.value = res.data.records;
			console.log(activities.value)
		}
	})
}
</script>

<style lang='scss' scoped></style>
