Преглед на файлове

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,