refactor: 점검 수정
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
<span
|
||||
v-else
|
||||
v-dompurify-html="tm('org_Inspection_During_Maintenance')"
|
||||
class="block text-left"
|
||||
></span>
|
||||
</h3>
|
||||
<div class="button-group justify-center">
|
||||
@@ -138,16 +139,10 @@ import { globalDateFormat } from '@seed-next/date'
|
||||
import { useCheckGameStart } from '#layers/composables/useGameStart'
|
||||
|
||||
const config = useRuntimeConfig()
|
||||
const stoveApiUrl = config.public.stoveApiUrl as string
|
||||
|
||||
const dataResourcesUrl = config.public.dataResourcesUrl as string
|
||||
const multilingualFileName = 'STOVE_PUBTEMPLATE_homepage_brand_inspection.json'
|
||||
|
||||
// const isClient = import.meta.client
|
||||
|
||||
const inspectionStore = useInspectionStore()
|
||||
const { webInspectionData } = storeToRefs(inspectionStore)
|
||||
const gameDataStore = useGameDataStore()
|
||||
const { gameData } = storeToRefs(gameDataStore)
|
||||
|
||||
// Multilingual
|
||||
const resultGetMultilingual = await useGetMultilingual({
|
||||
baseApiUrl: dataResourcesUrl,
|
||||
@@ -159,6 +154,15 @@ const { tm, locale }: any = useI18n({
|
||||
messages: Object(resultGetMultilingual?.value?.multilingual),
|
||||
})
|
||||
|
||||
const loadingStore = useLoadingStore()
|
||||
const { webInspectionData, getInspectionDataExternal } = useGetInspectionDataExternal()
|
||||
const gameDataStore = useGameDataStore()
|
||||
const { gameData } = storeToRefs(gameDataStore)
|
||||
await getInspectionDataExternal({
|
||||
baseApiUrl: stoveApiUrl,
|
||||
gameId: gameData.value.game_id,
|
||||
})
|
||||
|
||||
// locale에 따라 뒤에 KST 또는 UTC 추가 ko, en, zh-tw, ja
|
||||
// ko: (KST)
|
||||
// en: (UTC)
|
||||
@@ -172,8 +176,11 @@ const getLocaleTimezone = (localeType: string, region) => {
|
||||
|
||||
const timezoneMap: Record<string, string> = {
|
||||
ko: 'KST',
|
||||
'zh-tw': '台灣時間',
|
||||
en: 'UTC',
|
||||
ja: 'JST',
|
||||
'zh-tw': '台灣時間',
|
||||
'zh-cn': 'CST',
|
||||
th: 'ICT',
|
||||
}
|
||||
const timezone = timezoneMap[currentLocale] || 'KST'
|
||||
const defaultRegion = currentLocale === 'ko' ? 'KR' : ''
|
||||
@@ -261,10 +268,14 @@ const handleGameStart = () => {
|
||||
validateLauncher()
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
loadingStore.stopFullLoading()
|
||||
})
|
||||
|
||||
|
||||
definePageMeta({
|
||||
middleware: ['inspection'],
|
||||
layout: 'only-stove',
|
||||
showLoading: false,
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user