refactor: Remove unused router import in UserProfile.vue
- Eliminate the `useRouter` import from UserProfile.vue as it is no longer needed for the logout functionality.
This commit is contained in:
parent
6e653d584c
commit
412849b312
1 changed files with 0 additions and 2 deletions
|
|
@ -1,6 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
|
||||
import { Badge } from '@/components/ui/badge'
|
||||
|
|
@ -8,7 +7,6 @@ import { User, LogOut, Settings } from 'lucide-vue-next'
|
|||
import { auth } from '@/composables/useAuth'
|
||||
import { toast } from 'vue-sonner'
|
||||
|
||||
const router = useRouter()
|
||||
const userDisplay = computed(() => auth.userDisplay.value)
|
||||
|
||||
async function handleLogout() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue