From 764829504b79f01d392dc6f3e859119c75ff39d3 Mon Sep 17 00:00:00 2001 From: charlene tau express Date: Mon, 3 Mar 2025 17:43:20 +0800 Subject: [PATCH] added dockerfile --- src/components/TableComp.vue | 8 ++++---- src/utils/api.ts | 4 ++-- tsconfig.app.json | 2 +- tsconfig.json | 5 ++++- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/TableComp.vue b/src/components/TableComp.vue index adea9e8..9f61568 100644 --- a/src/components/TableComp.vue +++ b/src/components/TableComp.vue @@ -46,11 +46,11 @@ const searchWhat = ref(searchStore.searchParams.query) const query={...searchStore.searchParams} -const keys_of_a_data=ref() +const keys_of_a_data=ref() -const arr_col_items=ref([]) +const arr_col_items=ref([]) -const row_values = ref([]) +const row_values = ref([]) const router = useRouter(); const goToSearchPage=()=>{ router.push ("/") @@ -83,7 +83,7 @@ onMounted(()=>{ response.data.map(item=>{ - const values=[] + const values:any[]=[] Object.keys(item).forEach(key=>{ console.log("key12: ", key) diff --git a/src/utils/api.ts b/src/utils/api.ts index c2397fc..4f418aa 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -1,7 +1,7 @@ -export const fetchData = async(endpoints="", requestType="GET", requestBody=null)=>{ +export const fetchData = async(endpoints="", requestType="GET", requestBody:Record|null =null)=>{ try{ - const options={ + const options:RequestInit={ method:requestType, headers:{ "Content-Type":"application/json", diff --git a/tsconfig.app.json b/tsconfig.app.json index 913b8f2..2eb49f3 100644 --- a/tsconfig.app.json +++ b/tsconfig.app.json @@ -4,7 +4,7 @@ "exclude": ["src/**/__tests__/*"], "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", - + "noImplicitAny": false, "paths": { "@/*": ["./src/*"] } diff --git a/tsconfig.json b/tsconfig.json index 100cf6a..0e12ade 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,5 +10,8 @@ { "path": "./tsconfig.vitest.json" } - ] + ], + "compilerOptions": { + "noImplicitAny": false + } }