feat(ui): web移动端初始化

This commit is contained in:
廖彦棋
2024-03-13 17:30:24 +08:00
parent d3fbb8c19e
commit 4cb4b145f9
277 changed files with 50840 additions and 668 deletions

View File

@@ -0,0 +1,29 @@
<script lang="ts" setup>
import { dateFormat } from "@chatgpt-plus/packages/utils";
import SearchTable from "@/components/SearchTable/SearchTable.vue";
import type { SearchTableColumns } from "@/components/SearchTable/type";
import { loginLog } from "@/http/login";
const columns: SearchTableColumns[] = [
{
dataIndex: "username",
title: "用户名",
},
{
dataIndex: "login_ip",
title: "登录IP",
},
{
dataIndex: "login_address",
title: "登录地址",
},
{
dataIndex: "created_at",
title: "登陆时间",
render: ({ record }) => dateFormat(record.created_at),
},
];
</script>
<template>
<SearchTable :request="loginLog" :columns="columns" />
</template>