diff --git a/README.md b/README.md index a329e70..fc0ca9b 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,11 @@ Powered by [DeepSeek 开发平台](https://platform.deepseek.com/). +## Desc + +- 横批从右往左,上联在右,下联在左。 +- 横批从左往右,上联在左,下联在右。 + ## Dev ### Config API Key diff --git a/components/AiPrompt.vue b/components/AiPrompt.vue index 237244b..c4f992a 100644 --- a/components/AiPrompt.vue +++ b/components/AiPrompt.vue @@ -19,7 +19,11 @@ async function generate() { }, }) consola.info(data) - app.setCoupletsData(data) + if (data) { + // TODO: add 生成失败提示 + app.setCoupletsData(data) + } + app.loading = false } diff --git a/components/SpringFestivalCouplets.vue b/components/SpringFestivalCouplets.vue index 95f2ad0..3a919a5 100644 --- a/components/SpringFestivalCouplets.vue +++ b/components/SpringFestivalCouplets.vue @@ -60,11 +60,25 @@ async function shareLink() {