fix plugin config

This commit is contained in:
jxxghp
2023-07-24 10:39:23 +08:00
parent eeee0249cf
commit d95808edef
2 changed files with 70 additions and 47 deletions

View File

@ -134,13 +134,17 @@ class SiteStatistic(_PluginBase):
'content': [
{
'component': 'VSwitch',
'model': 'enabled',
'label': '启用插件',
'props': {
'model': 'enabled',
'label': '启用插件',
}
},
{
'component': 'VSwitch',
'model': 'notify',
'label': '发送通知',
'props': {
'model': 'notify',
'label': '发送通知',
}
}
]
}
@ -154,18 +158,22 @@ class SiteStatistic(_PluginBase):
'content': [
{
'component': 'VTextField',
'cols': 12,
'md': 6,
'model': 'cron',
'label': '执行周期',
'placeholder': '0 9,18 * * *'
'props': {
'cols': 12,
'md': 6,
'model': 'cron',
'label': '执行周期',
'placeholder': '0 9,18 * * *'
}
},
{
'component': 'VTextField',
'cols': 12,
'md': 6,
'model': 'queue_cnt',
'label': '队列数量'
'props': {
'cols': 12,
'md': 6,
'model': 'queue_cnt',
'label': '队列数量'
}
}
]
}
@ -179,11 +187,13 @@ class SiteStatistic(_PluginBase):
'content': [
{
'component': 'VSelect',
'chips': True,
'multiple': True,
'model': 'statistic_sites',
'label': '统计站点',
'items': []
'props': {
'chips': True,
'multiple': True,
'model': 'statistic_sites',
'label': '统计站点',
'items': []
}
}
]
}