Fix template literals in multiple Vue components for API URL construction to ensure correct endpoint formatting.
This commit is contained in:
@@ -84,7 +84,7 @@ const { showModal, modalConfig, alert, confirm, onConfirm, onCancel } = useModal
|
||||
async function loadUsers() {
|
||||
try {
|
||||
loading.value = true
|
||||
const response = await fetch('${API_URL}/roles/users', {
|
||||
const response = await fetch(`${API_URL}/roles/users`, {
|
||||
headers: {
|
||||
'Authorization': `Bearer ${authStore.token}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user