fix(i18n): 修复 laypage 变量定义前使用

pull/2742/head
sight 2025-06-24 13:34:38 +08:00
parent 741686bd79
commit 03dcbb7931
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ layui.define('i18n', function(exports) {
// 数据总数 // 数据总数
count: function(){ count: function(){
var countText = typeof config.countText === 'object' var countText = typeof config.countText === 'object'
? countText[0] + config.count + countText[1] ? config.countText[0] + config.count + config.countText[1]
: i18n.$t('laypage.total', {total: config.count}); : i18n.$t('laypage.total', {total: config.count});
return '<span class="layui-laypage-count">'+ countText +'</span>' return '<span class="layui-laypage-count">'+ countText +'</span>'