From 9fc4d98826703a7009b2c4327bbb74300519f1d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=9C=E8=8F=AF?= Date: Fri, 3 Mar 2023 05:11:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=BD=E9=AB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index 81df0a2..3cb96be 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -121,8 +121,8 @@ div(class="mt-[60px] grid grid-cols-1 lg:grid-cols-4 xl:grid-cols-5 text-white b div(class="flex flex-row flex-wrap gap-x-2 gap-y-2") div(class="flex flex-row flex-wrap" v-for="item in sizes" :key="item.id") button.border-2.rounded-md.px-2( - :class="{'border-purple-600': item.width==new_task.w && new_task.h==item.height}" - @click="new_task.w=item.width;new_task.h=item.height" + :class="{'border-purple-600': item.width==new_task.width && new_task.height==item.height}" + @click="new_task.width=item.width;new_task.height=item.height" ) {{ item.width }} x {{ item.height }} div(class="text-sm grey-100 mt-1") p Buy a paid plan for any width or height up to 1536px @@ -219,8 +219,8 @@ const new_task = ref({ prompt: 'A tabby cat, with a fluffy tail, basking in the sun, bright, warm, very cute!', // 渲染提示词 exclude: 'puppets, death, decay, mess', // 排除词汇 number: 1, // 生成图片数量 - w: 512, // 图片宽度 - h: 512, // 图片高度 + width: 512, // 图片宽度 + height: 512, // 图片高度 seed: 0, // 随机种子 sampler: 'pndm', // 扩散采样器 prompt_guidance: 6, // 提示词权重