From 79da724982c718621b62e16352d26be353c2d545 Mon Sep 17 00:00:00 2001 From: raja <1647193241@qq.com> Date: Mon, 4 Nov 2024 11:46:35 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E3=80=90=E5=AE=A1=E8=AE=A1=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E3=80=91=E5=AE=A1=E8=AE=A1=E9=A3=8E=E9=99=A9=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E5=BC=82=E5=B8=B8=20--bug=3D133310627?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/config/default.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/backend/config/default.py b/src/backend/config/default.py index 48509928..ccca228f 100644 --- a/src/backend/config/default.py +++ b/src/backend/config/default.py @@ -348,6 +348,19 @@ # 全局配置 BK_SHARED_RES_URL = os.getenv("BKAPP_BK_SHARED_RES_URL", os.getenv("BKPAAS_SHARED_RES_URL", "")) +# CORS 允许的 header +CORS_ALLOW_HEADERS = [ + "x-requested-with", + "content-type", + "accept,origin", + "authorization", + "x-csrftoken", + "user-agent", + "accept-encoding", + "time-zone", + *os.getenv("BKAPP_CORS_ALLOW_HEADERS", "").split(","), +] + """ 以下为框架代码 请勿修改 """ From c1f6fe17a859c1578fded3a9b883fe7297f37811 Mon Sep 17 00:00:00 2001 From: nanasikeai Date: Mon, 4 Nov 2024 14:52:26 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=E3=80=90=E5=AE=A1=E8=AE=A1=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E3=80=91=E5=AE=A1=E8=AE=A1=E9=A3=8E=E9=99=A9=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E5=BC=82=E5=B8=B8=20--bug=3D133310627?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/statement-manage/detail/index.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/frontend/src/views/statement-manage/detail/index.vue b/src/frontend/src/views/statement-manage/detail/index.vue index c9455350..b0667e6d 100644 --- a/src/frontend/src/views/statement-manage/detail/index.vue +++ b/src/frontend/src/views/statement-manage/detail/index.vue @@ -81,13 +81,13 @@ const init = async () => { try { // 样式文件 - const link = document.createElement('link'); - link.href = 'https://staticfile.qq.com/bkvision/p7e76e4518060411cb65c6bc2eaea9c03/latest/main.css?v=1704275097'; - link.rel = 'stylesheet'; - document.body.append(link); - await loadScript('https://staticfile.qq.com/bkvision/p7e76e4518060411cb65c6bc2eaea9c03/latest/chunk-vendors.js?v=1704275097'); - await loadScript('https://staticfile.qq.com/bkvision/p7e76e4518060411cb65c6bc2eaea9c03/latest/chunk-bk-magic-vue.js?v=1704275097'); - await loadScript('https://staticfile.qq.com/bkvision/p7e76e4518060411cb65c6bc2eaea9c03/latest/main.js?v=1704275097'); + // const link = document.createElement('link'); + // link.href = 'https://staticfile.qq.com/bkvision/p7e76e4518060411cb65c6bc2eaea9c03/latest/main.css?v=1704275097'; + // link.rel = 'stylesheet'; + // document.body.append(link); + await loadScript('https://staticfile.qq.com/bkvision/pbb9b207ba200407982a9bd3d3f2895d4/latest/main.js'); + // await loadScript('https://staticfile.qq.com/bkvision/p7e76e4518060411cb65c6bc2eaea9c03/latest/chunk-bk-magic-vue.js?v=1704275097'); + // await loadScript('https://staticfile.qq.com/bkvision/p7e76e4518060411cb65c6bc2eaea9c03/latest/main.js?v=1704275097'); render(); } catch (error) { console.error(error); From edd4cc136606e4e5e019fbb49b54e365d7d76327 Mon Sep 17 00:00:00 2001 From: nanasikeai Date: Mon, 4 Nov 2024 17:48:59 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E3=80=90=E5=AE=A1=E8=AE=A1=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E3=80=91=E5=88=87=E6=8D=A2=E8=B7=AF=E7=94=B1=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=8A=A5=E8=A1=A8=20--bug=3D133310627?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/statement-manage/detail/index.vue | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/src/frontend/src/views/statement-manage/detail/index.vue b/src/frontend/src/views/statement-manage/detail/index.vue index b0667e6d..1acc456e 100644 --- a/src/frontend/src/views/statement-manage/detail/index.vue +++ b/src/frontend/src/views/statement-manage/detail/index.vue @@ -22,6 +22,7 @@