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],
|
name: [Rules.requiredInput],
|
||||||
type: [Rules.requiredSelect],
|
type: [Rules.requiredSelect],
|
||||||
version: [Rules.requiredSelect],
|
version: [Rules.requiredSelect],
|
||||||
address: [Rules.host],
|
address: [Rules.ipV4V6OrDomain],
|
||||||
port: [Rules.port],
|
port: [Rules.port],
|
||||||
username: [Rules.requiredInput],
|
username: [Rules.requiredInput],
|
||||||
password: [Rules.requiredInput],
|
password: [Rules.requiredInput],
|
||||||
|
@ -135,7 +135,7 @@ type FormInstance = InstanceType<typeof ElForm>;
|
|||||||
const hostInfoRef = ref<FormInstance>();
|
const hostInfoRef = ref<FormInstance>();
|
||||||
const rules = reactive({
|
const rules = reactive({
|
||||||
groupID: [Rules.requiredSelect],
|
groupID: [Rules.requiredSelect],
|
||||||
addr: [Rules.host],
|
addr: [Rules.ipV4V6OrDomain],
|
||||||
port: [Rules.requiredInput, Rules.port],
|
port: [Rules.requiredInput, Rules.port],
|
||||||
user: [Rules.requiredInput],
|
user: [Rules.requiredInput],
|
||||||
authMode: [Rules.requiredSelect],
|
authMode: [Rules.requiredSelect],
|
||||||
|
@ -116,7 +116,7 @@ watch(
|
|||||||
);
|
);
|
||||||
|
|
||||||
const rules = reactive({
|
const rules = reactive({
|
||||||
addr: [Rules.host],
|
addr: [Rules.ipV4V6OrDomain],
|
||||||
port: [Rules.requiredInput, Rules.port],
|
port: [Rules.requiredInput, Rules.port],
|
||||||
user: [Rules.requiredInput],
|
user: [Rules.requiredInput],
|
||||||
authMode: [Rules.requiredSelect],
|
authMode: [Rules.requiredSelect],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user