文件路径状态问题
#5162
Replies: 1 comment
-
感谢建议 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
联系方式
No response
1Panel 版本
v1.10.9-lts
问题描述
手动输入文件路径,刷新页面后又恢复原路径,如下:

重现步骤
结果排查发现文件路径现在的实现是根据解析route路由,当修改route路径时可以正常改变文件路径:

可以考虑通过当用户手动改变文件路径时,通过localStorage.setItem记录,当页面重新刷新时通过localStorage.getItem和路由query比对,当不一致时优先转跳localStorage存储的值。
当然,这只是建议,如果有更好的实现逻辑更好!
期待的正确结果
No response
相关日志输出
No response
附加信息
No response
Beta Was this translation helpful? Give feedback.
All reactions