疯狂的狮子li
2021-08-11 a48154a2ee94c9346309af1a9e270e47b6d9eb42
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 com.ruoyi.common.utils.StringUtils;
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 (StringUtils.ishttp(link)) {
         this.link = link;
      }
   }
}