Browse Source

fix(product): topic 规则判断错误

main
刘凯 1 year ago
parent
commit
c2773cc005
  1. 2
      src/views/product/components/TopicFormModal.vue

2
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,
},

Loading…
Cancel
Save