Node-Red仪表板。 UI模板,使用msg.payload

问题描述 投票:0回答:1

我需要在node-red面板中更改ui_template的URL。如果我写类似的东西:

<iframe src="https://online.wonderware.eu/s/l5kctp/Explore/Analysis/loquesea/Embed"></iframe>

我可以看到:enter image description here

如果我尝试使用msg.payload发送网址,则可以看到:enter image description here

我试图用下一个代码获取有效载荷:

<iframe src={{msg.payload}}></iframe>

有效载荷为:

msg.payload="https://online.wonderware.eu/s/l5kctp/Explore/Analysis/loquesea/Embed";

我尝试了很多方法来读取有效载荷,但无法正确读取。

您知道如何读取有效负载并更改ui_template url吗?

谢谢

dashboard node-red
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.