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

需要能正确处理 Rax 生成的页面路由 #100

Open
1 task done
hughlv opened this issue Nov 4, 2022 · 2 comments
Open
1 task done

需要能正确处理 Rax 生成的页面路由 #100

hughlv opened this issue Nov 4, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@hughlv
Copy link

hughlv commented Nov 4, 2022

Should this be an RFC?

  • This is not a substantial change

Description

具体问题描述和讨论参见: alibaba/rax#2396

目前 Rax 生成的 Kraken/WebF 代码的路由行为基本等同于 Web,比如会把 /pages/Home/index 翻译为 /home.html,导致在 Kraken/WebF 端被识别为无效的资源 URL 而无法正常跳转。

Alternatives and Workarounds

No response

@hughlv hughlv added the enhancement New feature or request label Nov 4, 2022
@andycall andycall self-assigned this Nov 4, 2022
@andycall
Copy link
Member

andycall commented Nov 4, 2022

@hughlv 这个功能我看实现并不难,时间紧张的话,要不要你来做一下?只要添加针对 type="application/vnd.webf.bc1" 的支持就可以了

https://github.com/openwebf/webf/blob/main/webf/lib/src/dom/elements/script.dart#L286

@hughlv
Copy link
Author

hughlv commented Nov 4, 2022

@hughlv 这个功能我看实现并不难,时间紧张的话,要不要你来做一下?只要添加针对 type="application/vnd.webf.bc1" 的支持就可以了

https://github.com/openwebf/webf/blob/main/webf/lib/src/dom/elements/script.dart#L286

行,我得花些时间先看下代码,之前没写过 Dart。

looseyi pushed a commit that referenced this issue May 29, 2024
[NEZ][FEAT][1.78.0][RELEASE] nezha release 2.78.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants