Fix: Import router in auth store

This commit is contained in:
Hiro
2026-03-31 00:34:23 +00:00
parent 881dd2dec1
commit b11004142a

View File

@@ -2,6 +2,7 @@ import { defineStore } from 'pinia'
import { ref, computed } from 'vue'
import type { Agent, AuthResponse } from '@/types'
import { useApi } from '@/composables/useApi'
import router from '@/router'
export const useAuthStore = defineStore('auth', () => {
const token = ref<string | null>(localStorage.getItem('access_token'))