Merge branch 'dev' into hugo

This commit is contained in:
hugo committed 2026-05-20 18:51:25 +08:00
commit 83f958f272
1 file changed
+3 -3
+3 -3
View File
@@ -820,7 +820,7 @@ const mobileTabActive = computed({
if (activeSidebarItem.value === 'feedback') return 'feedback';
return 'applications';
},
set: (tab: string) => {
set: (tab: 'applications' | 'feedback' | 'profile') => {
if (tab === 'profile') {
activeSidebarItem.value = 'profile';
if (!profileUser.value.id) fetchProfile();
@@ -2067,11 +2067,11 @@ onMounted(async () => {
<nav v-if="isMobile" class="fixed bottom-0 left-0 right-0 z-40 border-t border-slate-200 bg-white dark:border-slate-800 dark:bg-slate-950 safe-bottom">
<div class="flex h-14 items-center justify-around">
<button
v-for="tab in [
v-for="tab in ([
{ key: 'applications', icon: LayoutGrid, label: '应用管理' },
{ key: 'feedback', icon: MessageCircle, label: '意见反馈' },
{ key: 'profile', icon: User, label: '我的' },
]"
] as const)"
:key="tab.key"
@click="mobileTabActive = tab.key"
class="flex flex-1 flex-col items-center justify-center gap-0.5 py-1 transition-colors"