Removed console.log and reduced timeout

This commit is contained in:
Dominic Villemure
2024-03-11 22:10:36 -04:00
parent bfef2b2d8c
commit ea716ec637
3 changed files with 3 additions and 8 deletions

View File

@@ -43,9 +43,9 @@
<script async setup>
import DefaultLayout from '@/layouts/DefaultLayout.vue';
import { ref } from 'vue'
import { useClient } from '@/plugins/clientPlugin';
import { useRouter } from 'vue-router'
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter()
const client = useClient();
@@ -58,12 +58,10 @@ async function callBackend() {
const response = await client.get('/api/TodoItems?ListId=1&PageNumber=1&PageSize=10');
const responseItems = response.data.items;
const orderedResponseItems = responseItems.sort((a, b) => a.id - b.id);
console.log(orderedResponseItems);
itemList.value = orderedResponseItems
} catch (error) {
errorNoAccessSnackBar.value = true;
console.log(error);
}
}