From 1cedcf59d8d3abad3b8051358e06f6a187aa5de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=BC=E5=8F=A4=E6=8B=89=E6=96=AF=E5=BE=B7=E5=BD=AA?= Date: Mon, 9 Nov 2020 20:04:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B8=85=E7=90=86=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=8A=9F=E8=83=BD=20(#104)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 尼古拉斯德彪 --- src/components/Crud/crud.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Crud/crud.js b/src/components/Crud/crud.js index 7109ed7..ae36765 100644 --- a/src/components/Crud/crud.js +++ b/src/components/Crud/crud.js @@ -406,6 +406,10 @@ function CRUD(options) { Vue.set(crudFrom, key, form[key]) } } + // add by ghl 2020-10-04 页面重复添加信息时,下拉框的校验会存在,需要找工取消 + if (crud.findVM('form').$refs['form']) { + crud.findVM('form').$refs['form'].clearValidate() + } }, /** * 重置数据状态