fixed composable path error

This commit is contained in:
Mamalizz
2025-01-14 20:46:52 +03:30
parent 48a2d389db
commit 74137bb12c
+13 -14
View File
@@ -1,8 +1,8 @@
<script setup lang="ts">
// import
import useGetAccount from "~/composables/api/account/useGetAccount";
import { useAuth } from "~/composables/api/auth/useAuth";
// types
@@ -19,24 +19,24 @@ const { logout } = useAuth();
const nav_links = ref<NavLink[]>([
{
title: "فروشگاه",
path: "#"
path: "#",
},
{
title: "دسته بندی ها",
path: "#"
path: "#",
},
{
title: "جستجو",
path: "#"
path: "#",
},
{
title: "ارتباط با ما",
path: "#"
path: "#",
},
{
title: "امکانات",
path: "#"
}
path: "#",
},
]);
</script>
@@ -45,16 +45,15 @@ const nav_links = ref<NavLink[]>([
<div
class="size-full flex items-center justify-between container py-[2.25rem]"
>
<div v-if="!!account" class="w-2/12 flex items-center justify-start">
<div
v-if="!!account"
class="w-2/12 flex items-center justify-start"
>
<span class="size-[2rem] bg-black rounded-full"></span>
<button @click="() => logout(true)">
خروج از وبسایت
</button>
<button @click="() => logout(true)">خروج از وبسایت</button>
</div>
<div v-else class="text-black">
KIR
</div>
<div v-else class="text-black">KIR</div>
<nav
class="flex-center gap-[2.5rem] w-8/12 typo-label-sm text-slate-500"