From 2fe919b6ceeab958d1d5e65a8b39fca129f0e6c5 Mon Sep 17 00:00:00 2001 From: 若依 <yzz_ivy@163.com> Date: 星期一, 01 十一月 2021 13:28:59 +0800 Subject: [PATCH] !361 优化一些布尔判断语法 Merge pull request !361 from 清溪先生/master --- ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java index ec04208..6826326 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/MetaVo.java @@ -1,5 +1,7 @@ package com.ruoyi.system.domain.vo; +import com.ruoyi.common.utils.StringUtils; + /** * 路由显示信息 * @@ -22,6 +24,11 @@ */ private boolean noCache; + /** + * 内链地址(http(s)://开头) + */ + private String link; + public MetaVo() { } @@ -37,6 +44,24 @@ this.title = title; this.icon = icon; 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; + } } public boolean isNoCache() @@ -68,4 +93,14 @@ { this.icon = icon; } + + public String getLink() + { + return link; + } + + public void setLink(String link) + { + this.link = link; + } } -- Gitblit v1.9.2