Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webTerminal输入需要减去prefix的长度 #32

Closed
Samonnite opened this issue Feb 15, 2022 · 0 comments
Closed

webTerminal输入需要减去prefix的长度 #32

Samonnite opened this issue Feb 15, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Samonnite
Copy link

https://github.com/DTStack/doraemon/blob/master/app/web/pages/webTerminal/index.tsx#L136

  // 原代码
  inputText = inputText.slice(0, currentOffsetLength) + key + inputText.slice(totalOffsetLength - currentOffsetLength)

这里需要减去prefix的长度,当prefix为空时是没有问题的,不为空会错位

  inputText = inputText.slice(0, currentOffsetLength - prefix.length) + key + inputText.slice(currentOffsetLength - prefix.length)
@wewoor wewoor added the bug Something isn't working label Feb 16, 2022
@liuxy0551 liuxy0551 assigned liuxy0551 and unassigned nankaNULL May 17, 2023
liuxy0551 pushed a commit that referenced this issue May 17, 2023
@liuxy0551 liuxy0551 mentioned this issue May 17, 2023
11 tasks
kongshan-zhuyu pushed a commit that referenced this issue Jul 12, 2023
* feat: #55 delete project and collect

* fix: #32 web terminal prefix

* docs: #13

* fix: #65 sequelize pool for mysql

---------

Co-authored-by: liuyi <liuyi@dtstack.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants