Skip to content

Commit 79729a9

Browse files
committed
fix(executive): 按内部职位编码匹配当前高管槽位
1 parent 5dfbfef commit 79729a9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/features/executiveTrainingModule.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,8 @@ import { registerExportInfo } from '../core/exportInfo.js';
388388
const execMatch = url.match(EXEC_API_REGEX);
389389
const currentSlot = getCurrentExecSlot();
390390
const detailPosition = d?.currentWorkHistory?.position;
391-
const detailSlot = detailPosition != null ? SLOT_MAP[detailPosition] : null;
392391
const matchesSlot = currentSlot != null && (
393-
detailSlot === currentSlot ||
392+
detailPosition === currentSlot ||
394393
(current && execMatch && Number(execMatch[1]) === Number(current.id))
395394
);
396395
if (execMatch && matchesSlot && getCurrentExecPanelContainer()) {

0 commit comments

Comments
 (0)