fix(styles): 添加滚动条,去除页码

This commit is contained in:
AN
2025-06-06 13:07:21 +08:00
parent 9ff15feee4
commit d37adc362d
2 changed files with 4 additions and 9 deletions

View File

@ -39,7 +39,7 @@ const toGitee = () => {
<NCard
size="small"
:bordered="false"
class="w-340px"
class="w-345px"
header-class="p-0"
:segmented="{ content: true, footer: 'soft' }"
>
@ -63,7 +63,7 @@ const toGitee = () => {
一键已读
</NTooltip>
</template>
<div>
<NScrollbar class="h-260px">
<template v-if="state?.notices?.length">
<template v-for="(message, index) in state?.notices" :key="index">
<NDivider v-show="index !== 0" />
@ -81,7 +81,7 @@ const toGitee = () => {
</template>
</template>
<NEmpty v-else class="h-180px flex-center" />
</div>
</NScrollbar>
<template #footer>
<div class="flex items-center justify-end">
<NButton type="primary" size="small" @click="toGitee">前往 Gitee</NButton>

View File

@ -16,12 +16,8 @@ defineOptions({
const appStore = useAppStore();
const { loading: btnLoading, startLoading: startBtnLoading, endLoading: endBtnLoading } = useLoading(false);
const { columns, data, loading, mobilePagination, getData } = useTable({
const { columns, data, loading, getData } = useTable({
apiFn: fetchGetOnlineDeviceList,
apiParams: {
pageNum: 1,
pageSize: 15
},
columns: () => [
{ title: '用户名', key: 'userName', align: 'center', minWidth: 120 },
{ title: 'IP地址', key: 'ipaddr', align: 'center', minWidth: 120 },
@ -109,7 +105,6 @@ async function forceLogout(tokenId: string) {
:loading="loading"
remote
:row-key="row => row.noticeId"
:pagination="mobilePagination"
class="h-full"
/>
</template>