!8 处理iss 优化建议

Merge pull request !8 from mlzhang/master
This commit is contained in:
Ants
2022-09-23 06:10:22 +00:00
committed by Gitee
3 changed files with 29 additions and 0 deletions

View File

@@ -125,6 +125,12 @@ const { optionsData } = useDictOptions<{
}
})
watch(optionsData, (arr) => {
if (arr.dept) {
formData.pid = arr.dept[0].id
}
})
const handleSubmit = async () => {
await formRef.value?.validate()
mode.value == 'edit' ? await deptEdit(formData) : await deptAdd(formData)