fix. gameData 개별 속성 구조분해
This commit is contained in:
@@ -68,7 +68,7 @@ const { pageNo, pageSize, updatePagination, getPageBlock } = useCouponPaging()
|
||||
const gameDataStore = useGameDataStore()
|
||||
const modalStore = useModalStore()
|
||||
const couponStore = useCouponStore()
|
||||
const { gameData } = storeToRefs(gameDataStore)
|
||||
const { gameId, gameCode } = storeToRefs(gameDataStore)
|
||||
const { handleOpenAlert, handleOpenConfirm } = modalStore
|
||||
const { couponNo, isSelectCharacter, selectCharacter } =
|
||||
storeToRefs(couponStore)
|
||||
@@ -148,8 +148,8 @@ const validationCheckBefore = async () => {
|
||||
* await checkGameMaintenance({
|
||||
* baseApiUrl: stoveMaintenanceApiUrl,
|
||||
* category: 'GAME',
|
||||
* service_id1: gameData.value.game_id,
|
||||
* gameId: gameData.value.game_id,
|
||||
* service_id1: gameId.value,
|
||||
* gameId: gameId.value,
|
||||
* lang: locale.value,
|
||||
* })
|
||||
* if (isGameMaintenance.value) {
|
||||
@@ -176,8 +176,8 @@ const validationCheckBefore = async () => {
|
||||
* await getCharacterList({
|
||||
* baseApiUrl: stoveApiUrl,
|
||||
* accessToken: csrGetAccessToken(),
|
||||
* game_id: gameData.value.game_id,
|
||||
* gameId: gameData.value.game_id,
|
||||
* game_id: gameId.value,
|
||||
* gameId: gameId.value,
|
||||
* })
|
||||
* if (
|
||||
* !characterList.value.some(
|
||||
@@ -195,7 +195,7 @@ const validationCheckBefore = async () => {
|
||||
*/
|
||||
await getInspectionDataExternal({
|
||||
baseApiUrl: stoveApiUrl,
|
||||
gameId: gameData.value.game_id,
|
||||
gameId: gameId.value,
|
||||
})
|
||||
if (isWebInspection.value) {
|
||||
return COUPON_RESULT.WEB_INSPECTION
|
||||
@@ -216,8 +216,8 @@ const validationCheckBefore = async () => {
|
||||
await getGuid({
|
||||
baseApiUrl: stoveApiUrl,
|
||||
accessToken: csrGetAccessToken(),
|
||||
game_id: gameData.value.game_id,
|
||||
gameId: gameData.value.game_id,
|
||||
game_id: gameId.value,
|
||||
gameId: gameId.value,
|
||||
})
|
||||
if (!hasGuid.value) {
|
||||
return COUPON_RESULT.EMPTY_GUID
|
||||
@@ -311,7 +311,7 @@ const handleCouponRegister = async () => {
|
||||
const res = await postCouponUse({
|
||||
accessToken: csrGetAccessToken(),
|
||||
user_token_type: 'web',
|
||||
game_code: gameData.value.game_code.toString(),
|
||||
game_code: gameCode.value.toString(),
|
||||
coupon_no: couponNo.value,
|
||||
client_ipaddr: clientIp.value,
|
||||
world_no: selectCharacter.value.world_id,
|
||||
@@ -368,7 +368,7 @@ const handlePeriodSearch = async () => {
|
||||
const req: ReqCouponList = {
|
||||
accessToken: accessToken,
|
||||
user_token_type: 'web',
|
||||
game_code: gameData.value.game_code.toString(),
|
||||
game_code: gameCode.value.toString(),
|
||||
start_date: getTime(startDate.value),
|
||||
end_date: getTime(endDate.value),
|
||||
use_state_code: searchStatus.value,
|
||||
@@ -402,7 +402,7 @@ const getCouponBoxUrl = () => {
|
||||
url = getStoveCouponUrl('desktop')
|
||||
}
|
||||
|
||||
return `${url}?game_id=${gameData.value.game_id}`
|
||||
return `${url}?game_id=${gameId.value}`
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -439,7 +439,7 @@ const goToCouponBox = () => {
|
||||
url = getStoveCouponUrl('desktop')
|
||||
}
|
||||
|
||||
csrGoExternalLink(`${url}?game_id=${gameData.value.game_id}`)
|
||||
csrGoExternalLink(`${url}?game_id=${gameId.value}`)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user