fix. 코드 리팩토링

This commit is contained in:
clkim
2025-11-13 16:52:35 +09:00
parent c92f2e69db
commit 56a2334055
4 changed files with 8 additions and 9 deletions

View File

@@ -13,7 +13,6 @@ onMounted(() => {
const currentLayout = computed(() => getLayoutType(getPageData.value))
definePageMeta({
layout: false, // 동적 레이아웃을 위해 기본 레이아웃 비활성화
middleware: ['inspection'],
@@ -22,6 +21,6 @@ definePageMeta({
<template>
<NuxtLayout :name="currentLayout">
<LayoutsMain v-if="getPageData" id="page-content" :page-data="getPageData" />
<LayoutsMain v-if="getPageData" :page-data="getPageData" />
</NuxtLayout>
</template>

View File

@@ -10,6 +10,7 @@ const props = withDefaults(defineProps<ContentParams>(), {
isOutsideClose: false,
contentTitle: '',
tabActiveIndex: 0,
tabInfo: () => [],
})
const modalStore = useModalStore()
@@ -101,7 +102,7 @@ watch(isOpen, newVal => {
<template v-else>
<div
v-dompurify-html="tabInfo[0].desc"
v-dompurify-html="tabInfo[0]?.desc"
class="content-tex use-base"
/>
</template>
@@ -152,13 +153,13 @@ watch(isOpen, newVal => {
.content-tex {
@apply overflow-y-auto mb-4 px-6 sm:mb-6 sm:px-8;
}
.content-tex::-webkit-scrollbar {
@apply w-[4px];
}
.content-tex::-webkit-scrollbar-track {
@apply bg-transparent;
}
.content-tex::-webkit-scrollbar {
@apply w-5;
}
.content-tex::-webkit-scrollbar-thumb {
@apply bg-[#D9D9D9] rounded-full px-2;
@apply w-1 bg-[#D9D9D9] rounded-full bg-clip-padding border-solid border-transparent border-8;
}
</style>

View File

@@ -29,7 +29,6 @@ const getEventNavigation = async (): Promise<Record<
const response = (await commonFetch('GET', apiUrl, {
query: queryParams,
loading: false,
})) as EventNavigationResponse | null
if (response?.code === 0 && 'value' in response) {

View File

@@ -25,7 +25,7 @@ export interface ContentParams {
isOutsideClose?: boolean
modalName?: string
contentTitle: string
tabInfo: {
tabInfo?: {
title: string
desc: string
}[]