疯狂的狮子li
2021-07-13 fd5414f82e6305eaf35297f63f9e7c95615f99e3
ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java
@@ -1,6 +1,8 @@
package com.ruoyi.system.domain.vo;
import lombok.*;
import cn.hutool.core.lang.Validator;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
/**
@@ -44,4 +46,19 @@
        this.noCache = noCache;
    }
   public MetaVo(String title, String icon, String link) {
      this.title = title;
      this.icon = icon;
      this.link = link;
   }
   public MetaVo(String title, String icon, boolean noCache, String link) {
      this.title = title;
      this.icon = icon;
      this.noCache = noCache;
      if (Validator.isUrl(link)) {
         this.link = link;
      }
   }
}