fix: bugs
Deploy banu-front / deploy (push) Successful in 1m26s

This commit is contained in:
sajjadtalkhabi
2026-08-15 19:42:33 +03:30
parent b64f528c0d
commit b2f2f89181
2 changed files with 7 additions and 7 deletions
+7 -5
View File
@@ -49,7 +49,7 @@
</template>
<script setup>
import { ref } from 'vue'
import { computed, ref } from 'vue'
import { useRouter } from 'vue-router'
import { useUIStore } from '@/store/ui'
import { gallery } from '@/utils/gallery'
@@ -65,7 +65,7 @@ defineProps({
const ui = useUIStore()
const router = useRouter()
const { clearSession } = useAuth()
const { role, clearSession } = useAuth()
const logoutMutation = useLogoutMutation()
const logo = gallery.authLogo
@@ -98,8 +98,10 @@ const onLogout = async () => {
}
}
const userMenuItems = [
{ key: 'edit-profile', label: 'ویرایش پروفایل', icon: 'pencil', onClick: goEditProfile },
const userMenuItems = computed(() => [
...(role.value === 'student'
? [{ key: 'edit-profile', label: 'ویرایش پروفایل', icon: 'pencil', onClick: goEditProfile }]
: []),
{
key: 'logout',
label: 'خروج',
@@ -107,7 +109,7 @@ const userMenuItems = [
color: 'var(--color-primary)',
onClick: onLogout,
},
]
])
const iconList = [
// { icon: 'chat', action: () => {} },
-2
View File
@@ -53,8 +53,6 @@ export const USER_STATUS = Object.freeze({
export const MARITAL_STATUS = Object.freeze({
single: 'مجرد',
married: 'متاهل',
divorced: 'مطلقه',
widowed: 'بیوه',
})
export const GENDER = Object.freeze({