diff --git a/fe/.eslintrc.cjs b/fe/.eslintrc.cjs index be5c5f9c..7757f695 100644 --- a/fe/.eslintrc.cjs +++ b/fe/.eslintrc.cjs @@ -510,7 +510,7 @@ const eslintPluginVue = { // as of eslint-plugin-vue@9.19.2 'vue/define-emits-declaration': ['error', 'type-literal'], 'vue/no-required-prop-with-default': 'error', 'vue/v-on-handler-style': ['error', 'inline-function'], - 'vue/multiline-ternary': 'error', + 'vue/multiline-ternary': ['error', 'always-multiline'], 'vue/array-element-newline': ['error', 'consistent'], 'vue/prefer-define-options': 'error', 'vue/valid-define-options': 'error', diff --git a/fe/src/components/Post/badges/PostCommonMetadataIconLinks.vue b/fe/src/components/Post/badges/PostCommonMetadataIconLinks.vue index ce9fbf76..e6835ebe 100644 --- a/fe/src/components/Post/badges/PostCommonMetadataIconLinks.vue +++ b/fe/src/components/Post/badges/PostCommonMetadataIconLinks.vue @@ -5,7 +5,7 @@ target="_blank" class="badge bg-light rounded-pill link-dark"> - ${postIDKey}:${props.post[props.postIDKey]}
首次收录时间:${formatTime(props.post.createdAt)}
最后更新时间:${formatTime(props.post.updatedAt ?? props.post.createdAt)}
最后发现时间:${formatTime(props.post.lastSeenAt ?? props.post.updatedAt ?? props.post.createdAt)}`" @@ -14,17 +14,20 @@
-