Merge branch 'dev' into test
This commit is contained in:
commit
e3ca34077f
1 file changed
+3
-3
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user