fix:修改模型下拉为空是重新请求
This commit is contained in:
parent
600fa0222f
commit
025d8b106b
@ -193,6 +193,9 @@ function reset() {
|
|||||||
|
|
||||||
/** 打开新增/编辑弹窗 */
|
/** 打开新增/编辑弹窗 */
|
||||||
function openDialog(type = 'add', row = {}) {
|
function openDialog(type = 'add', row = {}) {
|
||||||
|
if (modelsOptions.value.length === 0) {
|
||||||
|
getModelList()
|
||||||
|
}
|
||||||
if (type === 'add') {
|
if (type === 'add') {
|
||||||
dialogTitle.value = '新增'
|
dialogTitle.value = '新增'
|
||||||
} else if (type === 'edit') {
|
} else if (type === 'edit') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user