Skip to content

Commit 0210308

Browse files
committed
chore: update fetch/storage usages
1 parent 86aa4eb commit 0210308

File tree

5 files changed

+2
-6
lines changed

5 files changed

+2
-6
lines changed

nuxt/components/app/Header.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts" setup>
22
const auth = useAuthStore();
3-
const { $storage } = useNuxtApp();
43
54
const userItems = [
65
[

nuxt/components/input/UploadImage.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ const props = defineProps(["modelValue", "entity", "accept", "maxSize", "width",
33
const emit = defineEmits(["update:modelValue"]);
44
const toast = useToast();
55
6-
const { $storage, $http } = useNuxtApp();
7-
86
const value = computed({
97
get() {
108
return props.modelValue;

nuxt/composables/useHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export function useHttp<T>(
77
) {
88
return useFetch(url, {
99
...options,
10-
$fetch: useNuxtApp().$http as $Fetch
10+
$fetch: $http as $Fetch
1111
});
1212
}

nuxt/composables/useLazyHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export function useLazyHttp<T>(
77
) {
88
return useLazyFetch(url, {
99
...options,
10-
$fetch: useNuxtApp().$http as $Fetch
10+
$fetch: $http as $Fetch
1111
});
1212
}

nuxt/pages/account/devices.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script lang="ts" setup>
22
const dayjs = useDayjs();
33
const auth = useAuthStore();
4-
const { $http } = useNuxtApp();
54
65
const { data, status, refresh } = useHttp<any>("devices");
76
const loading = computed(() => status.value === 'pending');

0 commit comments

Comments
 (0)