1.编辑后再新增select表单验证自动触发
import {
getCurrentInstance, onMounted, onUnmounted, reactive, ref } from "vue";
setup() {
const {
proxy } = getCurrentInstance();
const addOrg = () => {
state.formEditDialog = true;
state.fieldForm = {
};
//解决编辑表单后新增表单验证还在的bug
proxy.$nextTick(() => {
proxy.$refs.fieldFormRef.clearValidate();
proxy.$forceUpdate();
});
state.dialogTitle = "新增字段";
state.formEditFlag = false;
};