feat: 首页改成动态菜单

This commit is contained in:
caiyuchao
2025-10-09 19:10:04 +08:00
parent 48396e7b60
commit 273bc540d1
2 changed files with 11 additions and 11 deletions

View File

@@ -33,16 +33,16 @@ const routes: RouteRecordRaw[] = [
// }, // },
// ], // ],
// }, // },
{ // {
name: 'Dashboard', // name: 'Dashboard',
path: '/dashboard', // path: '/dashboard',
component: () => import('#/views/dashboard/index.vue'), // component: () => import('#/views/dashboard/index.vue'),
meta: { // meta: {
icon: 'ion:home-outline', // icon: 'ion:home-outline',
title: $t('page.dashboard.title'), // title: $t('page.dashboard.title'),
order: -1, // order: -1,
}, // },
}, // },
{ {
name: 'Profile', name: 'Profile',
path: '/profile', path: '/profile',

View File

@@ -296,7 +296,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
{ {
label: $t('license.history'), label: $t('license.history'),
type: 'link', type: 'link',
ifShow: row.hasHistory, ifShow: row.applyCount && row.applyCount > 1,
auth: ['license:license:query'], auth: ['license:license:query'],
onClick: onHistory.bind(null, row), onClick: onHistory.bind(null, row),
}, },