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

请教一个语法问题 #42

Open
wzg1015 opened this issue May 15, 2024 · 1 comment
Open

请教一个语法问题 #42

wzg1015 opened this issue May 15, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@wzg1015
Copy link

wzg1015 commented May 15, 2024

在编辑日志分析脚本时,我需要一个 选择性输入。比如本次选择了第3个。 我想记住本次选择,下一次相同脚本运行是可以判断上一次的选择项,作为本次默认选择项。
我尝试了App的接口,并没有找到合适接口。Conetxt接口又会被重置。
目前遇到的问题:

  1. 每次 实时日志,点击刷新(清空)按钮后,会要求重新进行选择,就像这个Context被重新构建了,导致初始化脚本又执行了一遍。这个不是我预期的。
  2. 没有全局存储的接口,我想存储上一次的选择项,不强求能本地化,但是希望存储在内存里面。下一次默认能选择相同选项。
@hamster620
Copy link
Collaborator

@wzg1015 目前確實沒有辦法保留 Context 狀態,只能先自行撰寫檔案存取的代碼來達成,會考慮未來是否增加狀態持久化的接口。至於每次刷新會重建 Context 我們也會想想如何解決。

@hamster620 hamster620 self-assigned this May 16, 2024
@hamster620 hamster620 added enhancement New feature or request question Further information is requested labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants