Skip to content

Commit e97d6e8

Browse files
committed
删除 ExpressionEditor 组件中检查光标是否在数字后面的逻辑
-------------------------- [deploy]
1 parent 178632c commit e97d6e8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/components/ExpressionEditor.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -746,10 +746,6 @@ const deleteLast = () => {
746746
const beforeCursor = displayExpression.value.slice(0, cursorPosition);
747747
const afterCursor = displayExpression.value.slice(cursorPosition);
748748
749-
// 检查光标是否在数字后面
750-
const lastChar = beforeCursor[beforeCursor.length - 1];
751-
const isLastCharNumber = /\d/.test(lastChar);
752-
753749
displayExpression.value = beforeCursor.slice(0, -1) + afterCursor;
754750
}
755751

0 commit comments

Comments
 (0)