mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
parent
2b9a7df4b2
commit
44b5a8d6bf
@ -124,7 +124,7 @@ const rules = reactive({
|
||||
name: [Rules.requiredInput],
|
||||
type: [Rules.requiredSelect],
|
||||
version: [Rules.requiredSelect],
|
||||
address: [Rules.host],
|
||||
address: [Rules.ipV4V6OrDomain],
|
||||
port: [Rules.port],
|
||||
username: [Rules.requiredInput],
|
||||
password: [Rules.requiredInput],
|
||||
|
@ -135,7 +135,7 @@ type FormInstance = InstanceType<typeof ElForm>;
|
||||
const hostInfoRef = ref<FormInstance>();
|
||||
const rules = reactive({
|
||||
groupID: [Rules.requiredSelect],
|
||||
addr: [Rules.host],
|
||||
addr: [Rules.ipV4V6OrDomain],
|
||||
port: [Rules.requiredInput, Rules.port],
|
||||
user: [Rules.requiredInput],
|
||||
authMode: [Rules.requiredSelect],
|
||||
|
@ -116,7 +116,7 @@ watch(
|
||||
);
|
||||
|
||||
const rules = reactive({
|
||||
addr: [Rules.host],
|
||||
addr: [Rules.ipV4V6OrDomain],
|
||||
port: [Rules.requiredInput, Rules.port],
|
||||
user: [Rules.requiredInput],
|
||||
authMode: [Rules.requiredSelect],
|
||||
|
Loading…
x
Reference in New Issue
Block a user