fix(mobile): close employee supervisor deep links
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user