diff --git a/scripts/remove-i18n.js b/scripts/remove-i18n.js index 774958f..3229a69 100644 --- a/scripts/remove-i18n.js +++ b/scripts/remove-i18n.js @@ -34,7 +34,7 @@ function replaceContent(content) { ); // 替换 JavaScript 中的 this.$t('key') - content = content.replace(/this\.\$t\(['"]([^'"]+)['"]\)/g, (match, key) => { + content = content.replace(/i18n\.t\(['"]([^'"]+)['"]\)/g, (match, key) => { const value = getNestedValue(zhCN, key); return value ? `'${value}'` : match; }); @@ -53,6 +53,7 @@ async function main() { "pages/**/*.vue", "pages/**/*.js", "pages/**/*.ts", + "router/**/*.js", "components/**/*.vue", "components/**/*.js", "components/**/*.ts", diff --git a/src/router/index.js b/src/router/index.js index 41e0cf7..57742db 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,36 +10,36 @@ export const constantRoutes = [ // 首页 { path: '/pages/index/index', - meta: { title: i18n.t('w_0114') }, + meta: { title: '首页' }, name: 'index' }, // 信息管理 { path: '/information', - meta: { title: i18n.t('MN_F_T_7') }, + meta: { title: '信息管理' }, name: 'Information', children: [ // 会员信息 { path: '/pages/information/member', name: 'Member', - meta: { title: i18n.t('MN_F_T_8') }, + meta: { title: '会员信息' }, }, { path: '/pages/information/bisiness/index', name: 'BasicBusiness', - meta: { title: i18n.t('MN_F_T_11') }, + meta: { title: '办理业务' }, }, { path: '/pages/information/bisiness/reviewBusiness', name: 'ReviewBusiness', - meta: { title: i18n.t('MN_F_T_13') }, + meta: { title: '审核业务' }, hidden: true }, { path: '/pages/information/order', name: 'OrderBusiness', - meta: { title: i18n.t('MN_F_T_12') }, + meta: { title: '订单业务' }, }, { path: '/pages/information/dailyApplication/index', @@ -49,194 +49,194 @@ export const constantRoutes = [ { path: '/pages/information/realInfo', name: 'RealInfo', - meta: { title: i18n.t('MN_F_T_10') }, + meta: { title: '真实信息' }, }, { path: '/pages/information/removeOrderList', name: 'removeOrderList', - meta: { title: i18n.t('MN_F_T_32') }, + meta: { title: '撤单列表' }, }, { path: '/pages/information/operationRecord', name: 'operationRecord', - meta: { title: i18n.t('MN_F_T_41') }, + meta: { title: '操作记录' }, }, ] }, // 架构管理 { path: '/architecture', - meta: { title: i18n.t('N_I_5') }, + meta: { title: '架构管理' }, name: 'Framework', children: [ { path: '/pages/architecture/architecture', name: 'Recommend', - meta: { title: i18n.t('w_0031') }, + meta: { title: '推荐架构' }, }, { path: '/pages/architecture/resettlle', name: 'Arcgurecture', - meta: { title: i18n.t('ENU_MENU_381') }, + meta: { title: '安置架构' }, }, ] }, // 结算中心 { path: '/settlementCenter', - meta: { title: i18n.t('MN_F_T_45') }, + meta: { title: '结算中心' }, name: 'SettlementCenter', children: [ // 业绩汇总 { path: '/pages/settlementCenter/performanceTotal', name: 'performanceTotal', - meta: { title: i18n.t('MN_F_T_47') }, + meta: { title: '业绩汇总' }, }, // 拨比列表 { path: '/pages/settlementCenter/performanceList', name: 'performanceList', - meta: { title: i18n.t('MN_F_T_50') }, + meta: { title: '拨比列表' }, }, // 奖金来源 { path: '/pages/settlementCenter/sourceBonus', name: 'sourceBonus', - meta: { title: i18n.t('MN_F_T_51') }, + meta: { title: '奖金来源' }, }, // 奖金汇总 { path: '/pages/settlementCenter/totalBonus', name: 'totalBonus', - meta: { title: i18n.t('MN_F_T_52') }, + meta: { title: '奖金汇总' }, }, // 奖金明细 { path: '/pages/settlementCenter/bonusDetail', name: 'BonusDetail', - meta: { title: i18n.t('MN_F_T_53') }, + meta: { title: '奖金明细' }, }, // 安置数据 { path: '/pages/settlementCenter/placementData', name: 'placementData', - meta: { title: i18n.t('MN_F_T_54') }, + meta: { title: '安置数据' }, }, // 推荐数据 { path: '/pages/settlementCenter/recommendData', name: 'recommendData', - meta: { title: i18n.t('MN_F_T_56') }, + meta: { title: '推荐数据' }, }, ] }, // 财务管理 { path: '/financial', - meta: { title: i18n.t('MN_F_T_86') }, + meta: { title: '财务管理' }, name: 'Financial', children: [ // 充值 { path: '/pages/financial/index', name: 'Chongzhi', - meta: { title: i18n.t('MN_F_T_87') }, + meta: { title: '充值' }, }, // 充值明细 { path: '/pages/financial/rechargeDetail', name: 'RechargeDetail', - meta: { title: i18n.t('MN_F_T_89') }, + meta: { title: '充值明细' }, }, // 提现明细 { path: '/pages/financial/cashDetails', name: 'CashDetails', - meta: { title: i18n.t('MN_F_T_90') }, + meta: { title: '提现明细' }, }, // 消费明细 { path: '/pages/financial/consumptionDetails', name: 'ConsumptionDetails', - meta: { title: i18n.t('MN_F_T_92') }, + meta: { title: '消费明细' }, }, // 转账明细 { path: '/pages/financial/transferDetails', name: 'TransferDetails', - meta: { title: i18n.t('MN_F_T_94') }, + meta: { title: '转账明细' }, }, // 冻结明细 { path: '/pages/financial/freezeDetail', name: 'FreezeDetail', - meta: { title: i18n.t('MN_F_T_93') }, + meta: { title: '冻结明细' }, }, // 钱包明细 { path: '/pages/financial/walletDetails', name: 'WalletDetails', - meta: { title: i18n.t('MN_F_T_96') } + meta: { title: '钱包明细' } }, // 钱包明细详情 { path: '/pages/financial/walletDetailsPro', name: 'WalletDetailss', - meta: { title: i18n.t('MN_F_T_95') }, + meta: { title: '钱包明细详情' }, }, //余额汇总 { path: '/pages/financial/balanceSummary', name: 'BalanceSummary', - meta: { title: i18n.t('w_0483') }, + meta: { title: '余额汇总' }, }, // 在线支付 { path: '/pages/financial/onlinePayDetails', name: 'OnlinePayDetails', - meta: { title: i18n.t('MN_F_T_97') } + meta: { title: '在线支付明细' } }, // 在线退款 { path: '/pages/financial/onlineRefundDetails', name: 'OnlineRefundDetails', - meta: { title: i18n.t('MY_ORD_84') } + meta: { title: '在线退款明细' } }, // // 充值在线签呈 // { // path: '/pages/financial/czzxqc', // name: 'Czzxqc', - // meta: { title: i18n.t('MN_F_T_87') }, + // meta: { title: '充值' }, // }, ] }, // 物流管理 { path: '/logistics', - meta: { title: i18n.t('MN_F_T_73') }, + meta: { title: '物流管理' }, name: 'Logistics', children: [ // 商品订单 { path: '/pages/logistics/commodity/index', name: 'ProductOrders', - meta: { title: i18n.t('MN_F_T_69') }, + meta: { title: '商品订单' }, }, //订单开票 { path: '/pages/logistics/commodity/spInvoicing', name: 'SpInvoicing', - meta: { title: i18n.t('CK_KS_121') }, + meta: { title: '订单开票' }, }, ] }, // 统计分析 { path: '/statistics', - meta: { title: i18n.t('w_0420') }, + meta: { title: '统计分析' }, name: 'Statistics', children: [ {