fix(mobile): fail closed on org role lookup errors

This commit is contained in:
2026-07-14 03:32:44 +08:00
parent f9bce8f0ef
commit 5e3dfd0085
4 changed files with 6 additions and 2 deletions
@@ -90,6 +90,7 @@ test('登录后按组织身份切换主管首页', async () => {
assert.match(source, /\/api\/aihr\/mobile\/me/);
assert.match(source, /role === 'supervisor'/);
assert.match(source, /pages\/supervisor\/index\/index/);
assert.match(source, /removeStorageSync\(roleKey\)/);
});
test('员工首页保留师傅区、语音条、今日安排、我的地图四段结构', async () => {