Skip to content

IFrame 组件 嵌套网页--加一个参数用于设置首选语言(达到UI与嵌套的网页语言一致) #3666

@dotnetstd

Description

@dotnetstd

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

使用场景说明
服务端已部署有网站---url+?culture=zh-cn 切换语言--直接用浏览器切换可以生效(允许刷新),在组件中无法生效
网站范例地址:http://localhost:5210/Demo/function1?culture=zh-cn
在Blazor Page页面 添加IFrame 组件给SRC赋值网址+?culture=zh-cn 切换语言--UI画面切换语言OK,但IFrame组件中的页面有观察到语言切换为目标语言后又很快自动刷新为非目标语言(后面看了大神的视频才了解到还有浏览器上设定的语言在起作用)

Describe the solution you'd like

IFrame 组件 嵌套网页--加一个参数用于设置首选语言(达到UI与嵌套的网页语言同步切换且不刷新页面不受影响)
或是有其它方法可以在Blazor 中嵌第三方网页可以同步切换语言
感谢大佬!

Additional context

直接用浏览器访问切换地址-中文
image
直接用浏览器访问切换地址-英文
image
浏览器首选语言
image

异常图示1
image
异常图示2
image
前台代码
image

C#代码
image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions