diff --git a/src/views/product/components/TopicFormModal.vue b/src/views/product/components/TopicFormModal.vue index af07567e..a15fc823 100644 --- a/src/views/product/components/TopicFormModal.vue +++ b/src/views/product/components/TopicFormModal.vue @@ -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, },