@@ -118,7 +118,6 @@ import {storeToRefs} from 'pinia'
118118
119119const { t } = useI18n ();
120120const itemsStore = useItemsStore ()
121- const {$axios } = useNuxtApp ();
122121const deleting = ref (undefined )
123122const deleteDialogVisible = ref (false )
124123const {schema } = storeToRefs (itemsStore)
@@ -201,7 +200,7 @@ function initStoreWatchers() {
201200
202201async function initData () {
203202 itemsStore .loading = true
204- itemSchema .value = await itemsStore .getSchemaDef ($axios, props .apiUrl )
203+ itemSchema .value = await itemsStore .getSchemaDef (props .apiUrl )
205204 sortChange (props .defaultSort )
206205 await loadItems ()
207206 initStoreWatchers ()
@@ -217,7 +216,7 @@ async function loadItems() {
217216 const params = {}
218217 if (props .defaultFilters )
219218 Object .assign (params, props .defaultFilters )
220- await itemsStore .retrieveItems ($axios, props .apiUrl , params)
219+ await itemsStore .retrieveItems (props .apiUrl , params)
221220 await resolveTableRowProps (itemsStore .items [props .apiUrl ]? .results )
222221 itemsStore .loading = false
223222}
@@ -253,7 +252,7 @@ function sortChange({column, prop, order}) {
253252
254253
255254async function delItem () {
256- await deleteItem (deleting .value , itemsStore, props .apiUrl , t, $axios );
255+ await deleteItem (deleting .value , itemsStore, props .apiUrl );
257256 deleting .value = undefined ;
258257 deleteDialogVisible .value = false
259258}
0 commit comments