Merge branch 'dev' into hugo
This commit is contained in:
commit
83f958f272
1 file changed
+3
-3
@@ -820,7 +820,7 @@ const mobileTabActive = computed({
|
|||||||
if (activeSidebarItem.value === 'feedback') return 'feedback';
|
if (activeSidebarItem.value === 'feedback') return 'feedback';
|
||||||
return 'applications';
|
return 'applications';
|
||||||
},
|
},
|
||||||
set: (tab: string) => {
|
set: (tab: 'applications' | 'feedback' | 'profile') => {
|
||||||
if (tab === 'profile') {
|
if (tab === 'profile') {
|
||||||
activeSidebarItem.value = 'profile';
|
activeSidebarItem.value = 'profile';
|
||||||
if (!profileUser.value.id) fetchProfile();
|
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">
|
<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">
|
<div class="flex h-14 items-center justify-around">
|
||||||
<button
|
<button
|
||||||
v-for="tab in [
|
v-for="tab in ([
|
||||||
{ key: 'applications', icon: LayoutGrid, label: '应用管理' },
|
{ key: 'applications', icon: LayoutGrid, label: '应用管理' },
|
||||||
{ key: 'feedback', icon: MessageCircle, label: '意见反馈' },
|
{ key: 'feedback', icon: MessageCircle, label: '意见反馈' },
|
||||||
{ key: 'profile', icon: User, label: '我的' },
|
{ key: 'profile', icon: User, label: '我的' },
|
||||||
]"
|
] as const)"
|
||||||
:key="tab.key"
|
:key="tab.key"
|
||||||
@click="mobileTabActive = tab.key"
|
@click="mobileTabActive = tab.key"
|
||||||
class="flex flex-1 flex-col items-center justify-center gap-0.5 py-1 transition-colors"
|
class="flex flex-1 flex-col items-center justify-center gap-0.5 py-1 transition-colors"
|
||||||
|
|||||||
Reference in new issue
Block a user