You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script setup>
import { useLoading } from 'vue-loading-overlay'
import { onMounted, inject, ref } from 'vue'
const loading = useLoading();
const axios = inject('axios');
const items = ref([]);
onMounted(async () => {
const loader = loading.show(); // The loader works BUT it takes the default config, not the one defined by me
try {
let res = await axios.get('/api/private/xxxxx/');
items.value = res.data;
} catch (error) {
}
loader.hide();
})
</script>
The text was updated successfully, but these errors were encountered:
I'm submitting a....
Tell about your platform
Current behavior
Defining a global/default configuration doesn't work.
Expected behavior
Define global / default configuration that will be used by every instance of loading created.
Minimal reproduction of the problem with instructions
Inside main.js file:
Inside my component:
The text was updated successfully, but these errors were encountered: