小编Ruu*_*Pul的帖子

如何发布或订阅物化的Akka Stream流程图?

我正在玩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

scala akka reactive-streams akka-stream

11
推荐指数
1
解决办法
799
查看次数

如何将 json-ld 添加到 Vue 3?

当尝试将 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 标签?

json-ld vue.js vuejs3

4
推荐指数
1
解决办法
3335
查看次数

标签 统计

akka ×1

akka-stream ×1

json-ld ×1

reactive-streams ×1

scala ×1

vue.js ×1

vuejs3 ×1