From 09ada7a441ed0d18985aaaa33a8a1fdadc7a4f01 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Tue, 3 Nov 2026 17:15:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/profile/profile.vue | 83 ++++++++++++++++++++++++--------- tests/project-contract.test.mjs | 3 +- 2 files changed, 64 insertions(+), 22 deletions(-) diff --git a/src/pages/profile/profile.vue b/src/pages/profile/profile.vue index 500a025..45a4089 100644 --- a/src/pages/profile/profile.vue +++ b/src/pages/profile/profile.vue @@ -7,12 +7,25 @@ 作业仓库{{ warehouseDisplay }} 当前班次以海外仓排班为准 应用版本{{ appVersion }} - + + + + + + + + 业务页面暂以中文显示,语言偏好将保存在本机。 + + + 退出会撤销当前登录会话并清空本地作业草稿;未提交作业数据不得跨账号保留。 设置功能将在后续版本开放 @@ -20,6 +33,7 @@ + + diff --git a/tests/project-contract.test.mjs b/tests/project-contract.test.mjs index 5246fc3..4613578 100644 --- a/tests/project-contract.test.mjs +++ b/tests/project-contract.test.mjs @@ -146,7 +146,8 @@ test('Chinese English and Spanish locale selection is persisted from profile wit for (const label of ['简体中文', 'English', 'Español']) assert.match(i18n, new RegExp(label)) assert.match(profile, /currentLocale, LOCALE_OPTIONS, setLocale/) assert.match(profile, /@tap="selectLanguage"[\s\S]*切换语言/) - assert.match(profile, /uni\.showActionSheet[\s\S]*setLocale\(selected\.value\)/) + assert.match(profile, /ref="languagePopup"[\s\S]*role="radiogroup"/) + assert.match(profile, /applyLanguage\(value\)[\s\S]*setLocale\(selected\.value\)/) assert.match(inbound, /warehouse-profile/) })