请教如何在 web-lite 版本,通过浏览器 URL query 参数,打开指定 uri 的文件? #2294
Unanswered
fankangsong
asked this question in
Q&A
Replies: 1 comment 3 replies
|
@fankangsong 基于 web-lite 项目的案例,要实现这个需求,首先需要先了解一下 GitHub 的 Open API 能力https://docs.github.com/en/graphql ,然后示例代码内有针对 Query 获取参数的案例,你可以对照看一下实现,如: 这里定义了文件树请求的入口: 这里定义了通过 读取文件是通过 HttpFileService 读取: 可以自己尝试理解后修改一下试试 |
3 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.
例如,通过
http://127.0.0.1/?uri=/github/opensumi/core/README.md访问,自动打开 README.md 文件,并可以同步文件树状态。All reactions