Enhance frontend components by importing API_BASE_URL for consistent API endpoint usage. This update improves code maintainability and prepares the components for future API integrations.
This commit is contained in:
@@ -76,7 +76,9 @@
|
||||
<script setup>
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { useAuthStore } from '../stores/authStore'
|
||||
import { API_BASE_URL } from '@/config/api'
|
||||
|
||||
const API_URL = API_BASE_URL
|
||||
const authStore = useAuthStore()
|
||||
const now = new Date()
|
||||
const selectedMonth = ref(now.getMonth() + 1)
|
||||
|
||||
Reference in New Issue
Block a user