From bd77facbc36b43ff6ded22dcce82cccaf64c26c5 Mon Sep 17 00:00:00 2001 From: LeafYeeXYZ Date: Thu, 28 Mar 2024 19:30:24 +0800 Subject: [PATCH] repair --- src/index.html | 6 ------ src/main.js | 6 +++++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/index.html b/src/index.html index 8736e67..104a1ef 100644 --- a/src/index.html +++ b/src/index.html @@ -25,12 +25,6 @@ -
diff --git a/src/main.js b/src/main.js index 582fdbf..db6136c 100644 --- a/src/main.js +++ b/src/main.js @@ -1,11 +1,15 @@ // 定义服务端地址 const server = 'https://painter.leafyee.xyz' +// 初始化 swiper +const swiper = new Swiper('.imgContainer', { + effect: "cards", + grabCursor: true, +}) // 获取元素 const textarea = document.querySelector('#prompt') const submit = document.querySelector('#submit') const imgContainer = document.querySelector('.swiper-wrapper') const dialog = document.querySelector('dialog') -const container = document.querySelector('.container') // 提交函数 async function generateImage() {