feat: 添加提交前验证

This commit is contained in:
xingyu
2022-10-17 11:24:22 +08:00
parent aa983a6fa9
commit 855d23aec3
26 changed files with 548 additions and 397 deletions

View File

@ -127,7 +127,7 @@ const handleDelete = async (row: MenuVO) => {
await getList()
}
// 保存操作
function isExternal(path: string) {
const isExternal = (path: string) => {
return /^(https?:|mailto:|tel:)/.test(path)
}
const submitForm = async () => {