diff --git a/src/views/operation/configModels/index.vue b/src/views/operation/configModels/index.vue index 0f819f0..28b1d7e 100644 --- a/src/views/operation/configModels/index.vue +++ b/src/views/operation/configModels/index.vue @@ -193,6 +193,9 @@ function reset() { /** 打开新增/编辑弹窗 */ function openDialog(type = 'add', row = {}) { + if (modelsOptions.value.length === 0) { + getModelList() + } if (type === 'add') { dialogTitle.value = '新增' } else if (type === 'edit') {