feat: 优化 system

This commit is contained in:
xingyu4j
2025-06-24 17:35:43 +08:00
parent 9821f134fc
commit 34730ab1a0
22 changed files with 483 additions and 275 deletions

View File

@@ -2,6 +2,8 @@ import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { SystemAreaApi } from '#/api/system/area';
import { z } from '#/adapter/form';
/** 查询 IP 的表单 */
export function useFormSchema(): VbenFormSchema[] {
return [
@@ -12,7 +14,7 @@ export function useFormSchema(): VbenFormSchema[] {
componentProps: {
placeholder: '请输入 IP 地址',
},
rules: 'required',
rules: z.string().ip({ message: '请输入正确的 IP 地址' }),
},
{
fieldName: 'result',