added dockerfile

This commit is contained in:
charlene tau express 2025-03-03 17:43:20 +08:00
parent 6733f46f58
commit 764829504b
4 changed files with 11 additions and 8 deletions

View File

@ -46,11 +46,11 @@ const searchWhat = ref(searchStore.searchParams.query)
const query={...searchStore.searchParams} const query={...searchStore.searchParams}
const keys_of_a_data=ref() const keys_of_a_data=ref<any[]>()
const arr_col_items=ref([]) const arr_col_items=ref<any[]>([])
const row_values = ref([]) const row_values = ref<any[]>([])
const router = useRouter(); const router = useRouter();
const goToSearchPage=()=>{ const goToSearchPage=()=>{
router.push ("/") router.push ("/")
@ -83,7 +83,7 @@ onMounted(()=>{
response.data.map(item=>{ response.data.map(item=>{
const values=[] const values:any[]=[]
Object.keys(item).forEach(key=>{ Object.keys(item).forEach(key=>{
console.log("key12: ", key) console.log("key12: ", key)

View File

@ -1,7 +1,7 @@
export const fetchData = async(endpoints="", requestType="GET", requestBody=null)=>{ export const fetchData = async(endpoints="", requestType="GET", requestBody:Record<string,any>|null =null)=>{
try{ try{
const options={ const options:RequestInit={
method:requestType, method:requestType,
headers:{ headers:{
"Content-Type":"application/json", "Content-Type":"application/json",

View File

@ -4,7 +4,7 @@
"exclude": ["src/**/__tests__/*"], "exclude": ["src/**/__tests__/*"],
"compilerOptions": { "compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"noImplicitAny": false,
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./src/*"]
} }

View File

@ -10,5 +10,8 @@
{ {
"path": "./tsconfig.vitest.json" "path": "./tsconfig.vitest.json"
} }
] ],
"compilerOptions": {
"noImplicitAny": false
}
} }