This commit is contained in:
孟帅
2023-05-12 16:20:22 +08:00
parent f30fd885be
commit 9198a53584
52 changed files with 982 additions and 834 deletions

View File

@@ -203,7 +203,7 @@
message.success('更新成功');
userStore.logout().then(() => {
message.success('成功退出登录');
message.success('成功注销登录');
// 移除标签页
localStorage.removeItem(TABS_ROUTES);
router

View File

@@ -193,7 +193,7 @@
message.success('更新成功');
userStore.logout().then(() => {
message.success('成功退出登录');
message.success('成功注销登录');
// 移除标签页
localStorage.removeItem(TABS_ROUTES);
router

View File

@@ -1,6 +1,6 @@
import { h } from 'vue';
import { NAvatar, NTag } from 'naive-ui';
import { timestampToTime, formatBefore, formatAfter } from '@/utils/dateUtil';
import { timestampToTime, formatBefore } from '@/utils/dateUtil';
export const columns = [
{
@@ -31,11 +31,11 @@ export const columns = [
return row.app;
},
},
// {
// title: '用户ID',
// key: 'userId',
// width: 100,
// },
{
title: '用户ID',
key: 'userId',
width: 100,
},
{
title: '用户名',
key: 'username',
@@ -90,14 +90,6 @@ export const columns = [
return row.os;
},
},
{
title: '授权过期',
key: 'expTime',
width: 80,
render: (rows, _) => {
return formatAfter(new Date(rows.expTime * 1000));
},
},
{
title: '最后活跃',
key: 'heartbeatTime',