refactor(web): 合并 crud 组件共同参数

This commit is contained in:
2023-06-09 20:31:06 +08:00
parent 605616b116
commit 75ddfd8862
6 changed files with 15 additions and 24 deletions

View File

@@ -3,14 +3,10 @@ function queueCrud(name) {
type: 'crud',
title: name,
api: `\${base}/queue/all?name=${name}`,
...crudCommonOptions(),
interval: 10000,
syncLocation: false,
silentPolling: true,
loadDataOnce: true,
affixHeader: false,
perPage: 5,
stopAutoRefreshWhenModalIsOpen: true,
resizable: false,
headerToolbar: [
"reload",
'filter-toggler',