From 8a5e373add078ed9aa11d4e406a9f68638e1b42e Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期六, 07 三月 2026 14:06:11 +0800
Subject: [PATCH] #
---
src/main/webapp/views/index.html | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/views/index.html b/src/main/webapp/views/index.html
index 8cff576..b9bf30f 100644
--- a/src/main/webapp/views/index.html
+++ b/src/main/webapp/views/index.html
@@ -568,8 +568,12 @@
</div>
<div class="header-right">
- <el-tag v-if="licenseVisible" size="mini" type="warning" effect="dark">
- 璁稿彲璇� {{ licenseDays }} 澶╂父鏁�
+ <el-tag
+ v-if="licenseDisplayVisible"
+ size="mini"
+ :type="licenseTagType"
+ effect="dark">
+ 涓存椂璁稿彲璇佹湁鏁堟湡锛歿{ licenseDays }}澶�
</el-tag>
<el-tag
v-if="fakeVisible"
@@ -789,6 +793,18 @@
licenseVisible: function () {
return this.licenseDays !== null && this.licenseDays <= 30;
},
+ licenseDisplayVisible: function () {
+ return this.licenseVisible && this.licenseDays >= 0;
+ },
+ licenseTagType: function () {
+ if (this.licenseDays !== null && this.licenseDays <= 15) {
+ return "danger";
+ }
+ if (this.licenseDays !== null && this.licenseDays <= 30) {
+ return "warning";
+ }
+ return "info";
+ },
userShortName: function () {
return (this.userName || "绠$悊鍛�").substring(0, 1);
}
--
Gitblit v1.9.1