From b1f0c6ad8172d4c120cfcd4cf4d50f5edced17e3 Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Thu, 8 Jun 2023 00:37:05 +0800 Subject: [PATCH] complete edit page tag select, fix custom background BUG --- src/hooks/useBackgroundPicture.ts | 2 +- src/views/edit/Edit.vue | 2 +- src/views/edit/components/Tags.vue | 192 +++++++++++++++++++++++++---- 3 files changed, 169 insertions(+), 27 deletions(-) diff --git a/src/hooks/useBackgroundPicture.ts b/src/hooks/useBackgroundPicture.ts index 891ccbb9..a87f0058 100644 --- a/src/hooks/useBackgroundPicture.ts +++ b/src/hooks/useBackgroundPicture.ts @@ -20,7 +20,7 @@ export const currBackground = computed(() => { ) { return 'none' } else if (showKUNGalgameBackground.value === '1007') { - return `/url(${showKUNGalgameCustomBackground.value})` + return `url(${showKUNGalgameCustomBackground.value})` } else { // TODO: 替换为后端接口 return `url(/src/assets/images/bg/bg${showKUNGalgameBackground.value}.png)` diff --git a/src/views/edit/Edit.vue b/src/views/edit/Edit.vue index 3eef8d7e..409d5e5d 100644 --- a/src/views/edit/Edit.vue +++ b/src/views/edit/Edit.vue @@ -38,7 +38,7 @@ import KUNGalgameFooter from '@/components/KUNGalgameFooter.vue' } .root { height: 100vh; - min-height: 1000px; + min-height: 1100px; min-width: 900px; display: flex; flex-direction: column; diff --git a/src/views/edit/components/Tags.vue b/src/views/edit/components/Tags.vue index 035faa3a..275c25b0 100644 --- a/src/views/edit/components/Tags.vue +++ b/src/views/edit/components/Tags.vue @@ -1,60 +1,201 @@ - +