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

@@ -10,12 +10,10 @@ function cloudCrud(title, path) {
type: 'crud',
title: title,
api: `\${base}${path}`,
...crudCommonOptions(),
interval: 2000,
syncLocation: false,
silentPolling: true,
headerToolbar: ['reload'],
loadDataOnce: true,
affixHeader: false,
perPage: 100,
columns: [
{name: 'name', label: '名称'},