Skip to content

Commit ab75a04

Browse files
committed
fix: 修复了指令分发时仍然使用windowId作为chunkId的bug
1 parent afd7aeb commit ab75a04

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/composables/useCommandDispatcher.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ export function useCommandDispatcher() {
4848
const searchStore = useSearchStore();
4949

5050
const dispatch = (command: CommandType, payload?: any) => {
51-
const focus = windowStore.activeFocus;
5251
const activeWin = windowStore.currentActiveWindow;
53-
const { windowType, windowName } = activeWin;
52+
const { windowType, windowName, originalId } = activeWin;
5453

5554
// P0 Modal 开启时拦截其他业务命令
5655
if (windowType === 'modal') {
@@ -80,7 +79,7 @@ export function useCommandDispatcher() {
8079
// P2 基于 windowName 的分发
8180
switch (windowName) {
8281
case 'chunkView':
83-
handleChunkViewCommands(command, focus, payload);
82+
handleChunkViewCommands(command, originalId, payload);
8483
break;
8584
case 'chunkList':
8685
handleChunkListCommands(command);

0 commit comments

Comments
 (0)