|
|
|
@ -32,7 +32,7 @@ const [registerForm, { setFieldsValue, validate }] = useForm({
|
|
|
|
|
component: 'Input', |
|
|
|
|
rules: [ |
|
|
|
|
// eslint-disable-next-line no-template-curly-in-string |
|
|
|
|
{ pattern: /\/\$\{.+?\}\//, message: h('span', 'Topic必须包含/${deviceSn}/占位符') }, |
|
|
|
|
{ pattern: /\/\$\{deviceSn}\//, message: h('span', 'Topic必须包含/${deviceSn}/占位符') }, |
|
|
|
|
], |
|
|
|
|
dynamicDisabled: () => isUpdate.value, |
|
|
|
|
}, |
|
|
|
|