From e2fdde76ad9de959e0075784b63097f149f72998 Mon Sep 17 00:00:00 2001 From: liuzhihang Date: Thu, 13 Oct 2022 23:15:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AF=BC=E8=88=AA=E6=A0=8F?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=8C=E8=B0=83=E6=95=B4=20settings=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/http-client.env.json | 2 +- http/settings.http | 8 ++++---- settings.yaml | 2 +- templates/modules/footer.html | 9 +++++---- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/http/http-client.env.json b/http/http-client.env.json index c331818a..ad8d6e44 100644 --- a/http/http-client.env.json +++ b/http/http-client.env.json @@ -1,6 +1,6 @@ { "dev": { "cookie": "mozi-assist={\"show\":false,\"audio\":false,\"speed\":\"middle\",\"zomm\":1,\"cursor\":false,\"pointer\":false,\"bigtext\":false,\"overead\":false}; SESSION=dc56cf1a-7f74-4148-af2f-d8bde7dec653; XSRF-TOKEN=acab263c-7605-4765-873e-d0810c6d6973s", - "token": "acab263c-7605-4765-873e-d0810c6d6973" + "token": "acab263c-7605-4765-873e-d0810c6d6973s" } } \ No newline at end of file diff --git a/http/settings.http b/http/settings.http index 4a59d0c7..eabde133 100644 --- a/http/settings.http +++ b/http/settings.http @@ -3,7 +3,7 @@ DELETE http://localhost:8090/api/v1alpha1/settings/theme-hao-setting Content-Type: application/json Sec-Fetch-Mode: cors -X-XSRF-TOKEN: {{$uuid}} +X-XSRF-TOKEN: {{token}} Cookie: {{cookie}} @@ -13,7 +13,7 @@ POST http://localhost:8090/api/v1alpha1/settings Content-Type: application/json Sec-Fetch-Mode: cors Cookie: {{cookie}} -X-XSRF-TOKEN: {{$uuid}} +X-XSRF-TOKEN: {{token}} { "apiVersion": "v1alpha1", @@ -167,12 +167,12 @@ X-XSRF-TOKEN: {{$uuid}} ] }, { - "group": "menu", + "group": "footer", "label": "菜单映射", "formSchema": [ { "$formkit": "text", - "name": "footer_menu", + "name": "menu", "label": "底部相关链接", "placeholder": "请填写 metadata name", "help": "需要通过开发者模式获取菜单对应的 metadata name" diff --git a/settings.yaml b/settings.yaml index c3c56ec4..fe5b99d8 100644 --- a/settings.yaml +++ b/settings.yaml @@ -89,7 +89,7 @@ spec: placeholder: 请填写个人卡片描述信息 help: "支持使用 HTML 标签" - group: footer - label: 菜单映射 + label: 页脚 formSchema: - $formkit: text name: menu diff --git a/templates/modules/footer.html b/templates/modules/footer.html index 5b4b6474..d2c77b04 100644 --- a/templates/modules/footer.html +++ b/templates/modules/footer.html @@ -1,7 +1,7 @@ -