diff --git a/app/components/AppHeader.vue b/app/components/AppHeader.vue
index 973523b..cde62f6 100644
--- a/app/components/AppHeader.vue
+++ b/app/components/AppHeader.vue
@@ -29,14 +29,16 @@ const navItems = [
{ label: 'Phim lẻ', to: '/phim?type=single' },
]
+interface MemberMenuItem { label: string, icon: string, to: string }
+
const memberMenuItems = computed(() => {
- const items = [
- { label: 'Trang cá nhân', icon: 'user' as const, to: '/thanh-vien' },
- { label: 'Yêu thích', icon: 'heart' as const, to: '/yeu-thich' },
- { label: 'Lịch sử', icon: 'history' as const, to: '/lich-su' },
+ const items: MemberMenuItem[] = [
+ { label: 'Trang cá nhân', icon: 'user', to: '/thanh-vien' },
+ { label: 'Yêu thích', icon: 'heart', to: '/yeu-thich' },
+ { label: 'Lịch sử', icon: 'history', to: '/lich-su' },
]
if (user.value?.role === 'admin') {
- items.push({ label: 'Trang quản trị', icon: 'settings' as const, to: '/admin' })
+ items.push({ label: 'Trang quản trị', icon: 'settings', to: '/admin' })
}
return items
})
@@ -143,7 +145,7 @@ watch(() => route.path, () => {