From 4620942795232e8185a97c420f2269c02d112d13 Mon Sep 17 00:00:00 2001 From: "maxiaozhe@alicorns.co.jp" Date: Thu, 13 Jul 2023 14:30:07 +0900 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E5=90=8E=E7=AB=AF=E5=90=88=E4=BD=93?= =?UTF-8?q?=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/api_v1/routers/kintone.py | 2 +- frontend/.env | 2 +- frontend/src/components/DocUpload.vue | 55 ++++++++++++++--------- 3 files changed, 36 insertions(+), 23 deletions(-) diff --git a/backend/app/api/api_v1/routers/kintone.py b/backend/app/api/api_v1/routers/kintone.py index 1203c0a..bdc40da 100644 --- a/backend/app/api/api_v1/routers/kintone.py +++ b/backend/app/api/api_v1/routers/kintone.py @@ -49,7 +49,7 @@ async def createapp(name:str): property=["label","code","type","required","defaultValue","options"] -@r.post("/createappfromexcel",) +@r.post("/createappfromexcel") async def createappfromexcel(files:t.List[UploadFile] = File(...)): for file in files: if file.filename.endswith('.xlsx'): diff --git a/frontend/.env b/frontend/.env index 00485e5..3e3182f 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1,2 +1,2 @@ -KAB_BACKEND_URL="http://127.0.0.1:8000/api/v1/upload" +KAB_BACKEND_URL="http://127.0.0.1:8000/api/v1/" diff --git a/frontend/src/components/DocUpload.vue b/frontend/src/components/DocUpload.vue index 9fcc34e..cfede92 100644 --- a/frontend/src/components/DocUpload.vue +++ b/frontend/src/components/DocUpload.vue @@ -1,14 +1,14 @@