diff --git a/components/AiPrompt.vue b/components/AiPrompt.vue index c4f992a..8e9c98f 100644 --- a/components/AiPrompt.vue +++ b/components/AiPrompt.vue @@ -2,6 +2,7 @@ import consola from 'consola' import { useMagicKeys } from '@vueuse/core' +import { config } from '~/config' const app = useAppStore() @@ -42,7 +43,7 @@ watch(() => [Cmd_enter.value, Ctrl_enter.value], (v) => { placeholder="想要什么样的春联?" class="w-full rounded-lg p-4 shadow dark:bg-dark-800 outline-none!" border="~ gray focus:(yellow-500)" - maxlength="200" + :maxlength="config.inputMaxLength" />