ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java
@@ -1,9 +1,7 @@
package com.ruoyi.system.domain.vo;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.core.utils.StringUtils;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
/**
 * 路由显示信息
@@ -12,9 +10,8 @@
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class MetaVo {
    /**
     * 设置该路由在侧边栏和面包屑中展示的名字
     */
@@ -30,10 +27,10 @@
     */
    private boolean noCache;
   /**
    * 内链地址(http(s)://开头)
    */
   private String link;
    /**
     * 内链地址(http(s)://开头)
     */
    private String link;
    public MetaVo(String title, String icon) {
        this.title = title;
@@ -46,19 +43,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, 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;
      }
   }
    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;
        }
    }
}