Skip to content

fix: codesandbox 跳转 #2

@giscafer

Description

@giscafer

image

由于集成到VSCode插件,导致页面是嵌入到iframe时,a标签新开浏览器页面是无效的

解决方案:

  • 按钮点击时,派发事件到 VSCode容器,容器帮忙使用VSCode打开浏览器的方式实现。

要求:

  • 保留目前的情况,codegen单独开发时支持跳转。类似接口请求兼容方案一样。

插件开发将 codgen 集成到 vscode,完美解决cors 跨域问题,采用类似qiankun 微前端的思路。
在vscode 环境下,通过类似微前端(iframe通信)方式,vscode来发请求,将数据传给 codegen web。这样就避开了web端浏览器跨域的问题。
codegen web可以独立启动开发,可完全解耦,也是个独立web应用,也可以集成到 vscode 开发。

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions