fix(mobile): close employee supervisor deep links

This commit is contained in:
2026-07-14 20:28:41 +08:00
parent 9f3e07d6cd
commit a7938a77e4
4 changed files with 12 additions and 0 deletions
@@ -93,6 +93,13 @@ test('登录后按组织身份切换主管首页', async () => {
assert.match(source, /removeStorageSync\(roleKey\)/);
});
test('普通员工请求主管深链时回到员工首页', async () => {
const source = await pageSource('../src/services/position.ts');
assert.match(source, /role === 'user' && isSupervisorRoute\(requested\)/);
assert.match(source, /return '\/pages\/user\/today\/index'/);
});
test('员工首页保留师傅区、语音条、今日安排、我的地图四段结构', async () => {
const source = await pageSource('../src/pages/user/today/index.vue');