fix keepalive
This commit is contained in:
parent
df5a0a311b
commit
9b12fe6355
@ -13,7 +13,7 @@ import { useCRUD } from '@/composables'
|
|||||||
// import { loginTypeMap, loginTypeOptions } from '@/constant/data'
|
// import { loginTypeMap, loginTypeOptions } from '@/constant/data'
|
||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
|
|
||||||
defineOptions({ name: 'Api列表' })
|
defineOptions({ name: 'API管理' })
|
||||||
|
|
||||||
const $table = ref(null)
|
const $table = ref(null)
|
||||||
const queryItems = ref({})
|
const queryItems = ref({})
|
||||||
@ -141,9 +141,9 @@ const columns = [
|
|||||||
{
|
{
|
||||||
default: () => '编辑',
|
default: () => '编辑',
|
||||||
icon: renderIcon('material-symbols:edit', { size: 16 }),
|
icon: renderIcon('material-symbols:edit', { size: 16 }),
|
||||||
},
|
}
|
||||||
),
|
),
|
||||||
[[vPermission, 'post/api/v1/api/update']],
|
[[vPermission, 'post/api/v1/api/update']]
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
NPopconfirm,
|
NPopconfirm,
|
||||||
@ -163,12 +163,12 @@ const columns = [
|
|||||||
{
|
{
|
||||||
default: () => '删除',
|
default: () => '删除',
|
||||||
icon: renderIcon('material-symbols:delete-outline', { size: 16 }),
|
icon: renderIcon('material-symbols:delete-outline', { size: 16 }),
|
||||||
},
|
}
|
||||||
),
|
),
|
||||||
[[vPermission, 'delete/api/v1/api/delete']],
|
[[vPermission, 'delete/api/v1/api/delete']]
|
||||||
),
|
),
|
||||||
default: () => h('div', {}, '确定删除该API吗?'),
|
default: () => h('div', {}, '确定删除该API吗?'),
|
||||||
},
|
}
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@ -26,7 +26,7 @@ import api from '@/api'
|
|||||||
import TheIcon from '@/components/icon/TheIcon.vue'
|
import TheIcon from '@/components/icon/TheIcon.vue'
|
||||||
import { useUserStore } from '@/store'
|
import { useUserStore } from '@/store'
|
||||||
|
|
||||||
defineOptions({ name: '用户列表' })
|
defineOptions({ name: '用户管理' })
|
||||||
|
|
||||||
const $table = ref(null)
|
const $table = ref(null)
|
||||||
const queryItems = ref({})
|
const queryItems = ref({})
|
||||||
@ -99,7 +99,7 @@ const columns = [
|
|||||||
const group = []
|
const group = []
|
||||||
for (let i = 0; i < roles.length; i++)
|
for (let i = 0; i < roles.length; i++)
|
||||||
group.push(
|
group.push(
|
||||||
h(NTag, { type: 'info', style: { margin: '2px 3px' } }, { default: () => roles[i].name }),
|
h(NTag, { type: 'info', style: { margin: '2px 3px' } }, { default: () => roles[i].name })
|
||||||
)
|
)
|
||||||
return h('span', group)
|
return h('span', group)
|
||||||
},
|
},
|
||||||
@ -113,7 +113,7 @@ const columns = [
|
|||||||
return h(
|
return h(
|
||||||
NTag,
|
NTag,
|
||||||
{ type: 'info', style: { margin: '2px 3px' } },
|
{ type: 'info', style: { margin: '2px 3px' } },
|
||||||
{ default: () => (row.is_superuser ? '是' : '否') },
|
{ default: () => (row.is_superuser ? '是' : '否') }
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -130,7 +130,7 @@ const columns = [
|
|||||||
{
|
{
|
||||||
default: () => (row.last_login !== null ? formatDate(row.last_login) : null),
|
default: () => (row.last_login !== null ? formatDate(row.last_login) : null),
|
||||||
icon: renderIcon('mdi:update', { size: 16 }),
|
icon: renderIcon('mdi:update', { size: 16 }),
|
||||||
},
|
}
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -175,9 +175,9 @@ const columns = [
|
|||||||
{
|
{
|
||||||
default: () => '编辑',
|
default: () => '编辑',
|
||||||
icon: renderIcon('material-symbols:edit', { size: 16 }),
|
icon: renderIcon('material-symbols:edit', { size: 16 }),
|
||||||
},
|
}
|
||||||
),
|
),
|
||||||
[[vPermission, 'post/api/v1/user/update']],
|
[[vPermission, 'post/api/v1/user/update']]
|
||||||
),
|
),
|
||||||
h(
|
h(
|
||||||
NPopconfirm,
|
NPopconfirm,
|
||||||
@ -197,12 +197,12 @@ const columns = [
|
|||||||
{
|
{
|
||||||
default: () => '删除',
|
default: () => '删除',
|
||||||
icon: renderIcon('material-symbols:delete-outline', { size: 16 }),
|
icon: renderIcon('material-symbols:delete-outline', { size: 16 }),
|
||||||
},
|
}
|
||||||
),
|
),
|
||||||
[[vPermission, 'delete/api/v1/user/delete']],
|
[[vPermission, 'delete/api/v1/user/delete']]
|
||||||
),
|
),
|
||||||
default: () => h('div', {}, '确定删除该用户吗?'),
|
default: () => h('div', {}, '确定删除该用户吗?'),
|
||||||
},
|
}
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user