mirror of
https://github.com/certd/certd.git
synced 2026-05-15 12:37:30 +08:00
perf(设置): 添加首页启用开关配置
在系统设置中添加首页启用开关配置项,包括前端路由守卫检查、多语言支持和表单配置,以控制是否显示首页
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
<a-form-item :label="t('certd.allowCrawlers')" :name="['public', 'robots']">
|
||||
<a-switch v-model:checked="formState.public.robots" />
|
||||
</a-form-item>
|
||||
<a-form-item :label="t('certd.sys.setting.homePageEnabled')" :name="['public', 'homePageEnabled']">
|
||||
<a-switch v-model:checked="formState.public.homePageEnabled" />
|
||||
</a-form-item>
|
||||
|
||||
<a-form-item :label="t('certd.enableCommonCnameService')" :name="['private', 'commonCnameEnabled']">
|
||||
<a-switch v-model:checked="formState.private.commonCnameEnabled" />
|
||||
@@ -62,6 +65,7 @@ const formState = reactive<Partial<SysSettings>>({
|
||||
public: {
|
||||
icpNo: "",
|
||||
mpsNo: "",
|
||||
homePageEnabled: true,
|
||||
},
|
||||
private: {},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user