chore(多语言): 优化登录页面的中英文展示

This commit is contained in:
2025-12-29 11:23:32 +08:00
parent 9f25cb5336
commit 6b5a268955
2 changed files with 9 additions and 12 deletions

View File

@@ -30,18 +30,14 @@ export default {
if (routeParts[0] === 'pages_order') routeParts[0] = 'order';
if (routeParts[0] === 'pages_promotion') {
if (routeParts[1] === 'point') routeParts = ['point', ...routeParts.slice(2)];
if (routeParts[1] === 'fenxiao') routeParts = ['fenxiao', ...routeParts.slice(2)];
if (routeParts[1] === 'merch') routeParts = ['merch', ...routeParts.slice(2)];
const promotionModules = ['point', 'fenxiao', 'merch'];
if (promotionModules.includes(routeParts[1])) {
routeParts = [routeParts[1], ...routeParts.slice(2)];
}
}
if (routeParts[0] === 'pages_tool') {
if (routeParts[1] === 'member') routeParts = ['member', ...routeParts.slice(2)];
if (routeParts[1] === 'order') routeParts = ['order', ...routeParts.slice(2)];
if (routeParts[1] === 'goods') routeParts = ['goods', ...routeParts.slice(2)];
if (routeParts[1] === 'help') routeParts = ['help', ...routeParts.slice(2)];
if (routeParts[1] === 'notice') routeParts = ['notice', ...routeParts.slice(2)];
if (routeParts[1] === 'article') routeParts = ['article', ...routeParts.slice(2)];
routeParts = [routeParts[1], ...routeParts.slice(2)];
}
// ---- 处理页面目录映射 <end>----
@@ -93,7 +89,8 @@ export default {
}
if (value == undefined || (value == 'title' && field == 'title')) value = ''; // field
console.log(`字段: ${field}, 值: ${value}`)
// 多语言调试,注释后可以关闭控制台输出
// console.log(`字段: ${field}, 值: ${value}`)
return value;
},
/**