Skip to content

Commit

Permalink
fix: judge coupletsData 总结 to slice
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Feb 9, 2024
1 parent 17bb09f commit 8eb578b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/SpringFestivalCouplets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async function shareLink() {
<!-- not inset-0 for compatibility -->
<span class="fu-char absolute bottom-0 left-0 right-0 top-0">
<Transition name="fade" mode="out-in">
<span v-if="app.visible">{{ coupletsData['总结'].slice(0, 1) }}</span>
<span v-if="app.visible && coupletsData['总结']">{{ coupletsData['总结'].slice(0, 1) }}</span>
</Transition>
</span>
</div>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"@yunlefun/utils": "0.1.2-beta.4",
"consola": "^3.2.3",
"copy-image-clipboard": "^2.1.2",
"eslint": "npm:eslint-ts-patch@^8.56.0-0",
"eslint-plugin-format": "^0.1.0",
"eslint": "npm:eslint-ts-patch@^8.56.0-0",
"eslint-ts-patch": "^8.56.0-0",
"html-to-image": "^1.11.11",
"nuxt": "^3.10.1",
"nuxt-module-eslint-config": "^0.1.0",
"pinia": "^2.1.7",
"radix-vue": "^1.4.1",
"radix-vue": "^1.4.2",
"sass": "^1.70.0",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8eb578b

Please sign in to comment.