From aad429be0a04e2fffcc1bcddf3ad39c4cc1df7ef Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Fri, 14 Feb 2025 16:47:56 +0800 Subject: [PATCH] =?UTF-8?q?refactor(app):=20=E7=A7=BB=E9=99=A4=20@nuxt/ima?= =?UTF-8?q?ge=20=E6=A8=A1=E5=9D=97=E5=B9=B6=E8=B0=83=E6=95=B4=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了 @nuxt/image 模块引用- 更新了 x-image 组件,使用原生 img 标签替代 nuxt-img - 调整了 home 和 login 页面中的样式 - 更新了 realAuth 页面的路由和样式 --- app/components/x-image/index.vue | 24 +-- app/pages/home/index.vue | 2 +- app/pages/login/index.vue | 7 +- app/pages/realAuth/index.vue | 8 +- nuxt.config.js | 1 - package.json | 1 - pnpm-lock.yaml | 295 ------------------------------- 7 files changed, 16 insertions(+), 322 deletions(-) diff --git a/app/components/x-image/index.vue b/app/components/x-image/index.vue index 7369175..33c6cf9 100644 --- a/app/components/x-image/index.vue +++ b/app/components/x-image/index.vue @@ -9,21 +9,7 @@ const props = defineProps({ type: Boolean, default: true }, - // 用于控制图片尺寸 - sizes: { - type: Array, - default: () => [320, 640, 768, 1024] - }, - // 用于控制图片格式 - format: { - type: String, - default: 'webp' - }, - // 用于控制图片质量 - quality: { - type: Number, - default: 80 - } + }) const showImage = () => { @@ -35,9 +21,9 @@ const showImage = () => { \ No newline at end of file diff --git a/app/pages/home/index.vue b/app/pages/home/index.vue index 6d526c3..e1321df 100644 --- a/app/pages/home/index.vue +++ b/app/pages/home/index.vue @@ -17,7 +17,7 @@ if (!auctionDetail.value.uuid) {