我正在玩Akka Stream,我试图在实现后弄清楚它的灵活性.
一种方法是使用低级反应流API:http: //doc.akka.io/api/akka-stream-and-http-experimental/1.0-M3/#akka.stream.scaladsl.PublisherSource
但是,您需要定义这些点以进行发布或订阅.有没有办法发布或订阅任意物化流程图节点?这应该是可能的,因为物化流程图只不过是一组参与者.
例如:首先,部署流程图1:A~> B~> C.
然后,部署流程图2和3:D~> BB~> E
当尝试将 json-ld 脚本标签添加到传送到 HEAD 的部分时,Vue 3 编译器失败并显示以下错误:
VueCompilerError: Tags with side effect (<script> and <style>) are ignored in client component templates.
模板:
<template>
<teleport to="head">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://www.example.com/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://query.example.com/search?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
</teleport>
<div>
Hello world!
</div>
</template>
Run Code Online (Sandbox Code Playgroud)
如何在不安装额外依赖项的情况下添加此 json-ld 标签?