浏览代码

feat: 设备基础配置,安装方式设置为必填项;

liujia 1 月之前
父节点
当前提交
eeeedc6
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/views/device/detail/components/deviceBaseConfig/index.vue

+ 7 - 0
src/views/device/detail/components/deviceBaseConfig/index.vue

@@ -376,6 +376,13 @@ const saveBaseConfig = async () => {
 
 // 统一校验规则
 const rules: Record<string, Rule[]> = {
+  installWay: [
+    {
+      required: true,
+      message: '请选择安装方式',
+      trigger: ['change', 'blur'],
+    },
+  ],
   // xRangeStart: [
   //   {
   //     required: true,