mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Provide axios as well
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
import { defineComponent, toRefs, watch, computed, provide } from '@vue/composition-api';
|
||||
import * as stores from '@/stores';
|
||||
import api from '@/api';
|
||||
import axios from 'axios';
|
||||
|
||||
import useWindowSize from '@/composables/use-window-size';
|
||||
import setFavicon from '@/utils/set-favicon';
|
||||
@@ -101,9 +102,13 @@ export default defineComponent({
|
||||
|
||||
const error = computed(() => appStore.state.error);
|
||||
|
||||
/**
|
||||
* This allows custom extensions to use the apps internals
|
||||
*/
|
||||
provide('system', {
|
||||
...stores,
|
||||
api,
|
||||
axios,
|
||||
});
|
||||
|
||||
return { hydrating, brandStyle, appAccess, error };
|
||||
|
||||
Reference in New Issue
Block a user