Skip to content

Commit d535df1

Browse files
committed
fix: 解决冲突
1 parent 1bec243 commit d535df1

File tree

1 file changed

+1
-1
lines changed
  • packages/extension/src/components/control

1 file changed

+1
-1
lines changed

packages/extension/src/components/control/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class Control {
116116
text.title = item.title
117117
text.innerText = item.text
118118
itemContainer.append(icon, text)
119-
switch (item.text) {
119+
switch (item.key) {
120120
case 'undo':
121121
this.lf.on('history:change', ({ data: { undoAble } }: any) => {
122122
itemContainer.className = undoAble ? NORMAL : DISABLED

0 commit comments

Comments
 (0)