Browse Source

add link to NodeView

Axolotle 2 years ago
parent
commit
eb3828a7f8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/components/nodes/NodeViewTitle.vue

+ 2 - 1
src/components/nodes/NodeViewTitle.vue

@@ -12,7 +12,8 @@
       <slot name="default" />
       <span>
         <strong>{{ toCommaList(node.authors) }}</strong>,
-        <button-url v-if="url && node.piece" :link="node.piece" />
+        <button-url v-if="url && node.piece && node.piece.url" :link="node.piece" />
+        <button-url v-if="url && node.link && node.link.url" :link="node.link" />
       </span>
       <span>
         <span v-if="node.preTitle" v-html="' ' + trim(node.preTitle) + ','" />