From 802629bdbbf83143c7aab91fad9ef24466c4622d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=8E=AB=E5=94=90=E5=B0=BC?= Date: Mon, 28 Oct 2024 18:37:49 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B9=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=AE=A1=E6=A0=B8=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E6=A8=A1=E6=8B=9F=E6=95=B0=E6=8D=AE=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- gradle.properties | 2 +- src/main/resources/extensions/setting.yaml | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0cf1039..43c66ab 100644 --- a/README.md +++ b/README.md @@ -192,4 +192,4 @@ halo: - "/path/to/plugin-starter" ``` -最后重启 Halo 项目即可。 \ No newline at end of file +最后重启 Halo 项目即可。 diff --git a/gradle.properties b/gradle.properties index 5011a7f..71a5aa4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=1.0.5 +version=1.0.6 diff --git a/src/main/resources/extensions/setting.yaml b/src/main/resources/extensions/setting.yaml index 3f98a4e..cd99ba3 100644 --- a/src/main/resources/extensions/setting.yaml +++ b/src/main/resources/extensions/setting.yaml @@ -9,6 +9,7 @@ spec: formSchema: - $formkit: radio name: auditModeEnabled + id: auditModeEnabled label: 是否开启审核模式 help: 开启审核模式,关闭小程序部分数据展示,小程序提交审核使建议开启,审核后关闭。 value: false @@ -18,6 +19,13 @@ spec: - label: 关闭 value: false validation: required + - $formkit: text + if: "$get(auditModeEnabled).value === true" + name: auditModeMockUrl + label: 模拟数据地址 + value: "" + validation: required + help: "填写模拟数据的url地址,参考数据格式和说明:https://uni-halo.925i.cn/deploy/wx-release.html" - $formkit: group name: copyrightConfig label: 页面版权配置