From 539a56279625242c497b4b4093f2defbb9d80334 Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期四, 29 一月 2026 14:05:44 +0800
Subject: [PATCH] #i18n翻译
---
src/main/webapp/static/layui/lay/modules/index.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/main/webapp/static/layui/lay/modules/index.js b/src/main/webapp/static/layui/lay/modules/index.js
index 803f271..f2c8658 100644
--- a/src/main/webapp/static/layui/lay/modules/index.js
+++ b/src/main/webapp/static/layui/lay/modules/index.js
@@ -27,7 +27,8 @@
});
if (!flag) { // 娣诲姞閫夐」鍗�
if (index.mTabList.length + 1 >= setter.maxTabNum) {
- layer.msg('鏈�澶氭墦寮�' + setter.maxTabNum + '涓�夐」鍗�', {icon: 2, anim: 6});
+ var msg = typeof I18n !== 'undefined' ? I18n.t('max_open_tabs_alert', {num: setter.maxTabNum}) : '鏈�澶氭墦寮�' + setter.maxTabNum + '涓�夐」鍗�';
+ layer.msg(msg, {icon: 2, anim: 6});
return admin.activeNav(index.mTabPosition);
}
mIsAddTab = true;
--
Gitblit v1.9.1