From 810a437ad9c2ad4af1e1fa8b1831350afd18530b Mon Sep 17 00:00:00 2001 From: IchliebedichZhu <54796446@qq.com> Date: Wed, 6 Mar 2024 20:58:34 +0000 Subject: [PATCH] feat: convert bgImgListWrap component to composition API --- src/api/material.ts | 2 + .../modules/panel/wrap/BgImgListWrap.vue | 248 ++++++++++-------- 2 files changed, 143 insertions(+), 107 deletions(-) diff --git a/src/api/material.ts b/src/api/material.ts index da961f4..df38df0 100644 --- a/src/api/material.ts +++ b/src/api/material.ts @@ -64,6 +64,7 @@ export const getFontSub = (params: Type.Object = {}, extra: any = {}) => fetch(' type TGetImageListParams = { page?: number + cate?: number } export type TGetImageListResult = { @@ -73,6 +74,7 @@ export type TGetImageListResult = { url: string user_id: number id: string + thumb: string } // 图库列表 diff --git a/src/components/modules/panel/wrap/BgImgListWrap.vue b/src/components/modules/panel/wrap/BgImgListWrap.vue index d50ad48..bd8ed55 100644 --- a/src/components/modules/panel/wrap/BgImgListWrap.vue +++ b/src/components/modules/panel/wrap/BgImgListWrap.vue @@ -8,132 +8,166 @@ -