Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
andire120 committed Jan 9, 2025
1 parent 464d096 commit 9be9b35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/routes/oven/(time)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { onMount } from 'svelte';
// 상대 경로로 변경
// public 폴더의 실제 URL 경로 설정
const BASE_PATH = '/src/public/element/otherthing/otherelement';
// 이미지 import 구문 수정
// 이미지 경로 설정 - /src/public 유지
const background = `${BASE_PATH}/background.png`;
const next = `${BASE_PATH}/nextbotten.png`;
const chep = `${BASE_PATH}/파이굽기 간판.png`;
const oven = `${BASE_PATH}/oven.png`;
const danger = `${BASE_PATH}/choseoven.png`;
// ovenImages 객체 수정
// ovenImages 객체 수정 - 전체 경로 포함
const ovenImages = {
'thr': `${BASE_PATH}/oven1.png`,
'one': `${BASE_PATH}/oven2.png`,
Expand Down Expand Up @@ -55,7 +55,7 @@ onMount(() => {
async function showDan() {
if (selectedtime && timeMapping[selectedtime]) {
await goto(
`${base}/result?id=${id}&id_liquid=${id_liquid}&main_ingredient=${main_ingredient}&selectedtime=${timeMapping[selectedtime]}`
`result?id=${id}&id_liquid=${id_liquid}&main_ingredient=${main_ingredient}&selectedtime=${timeMapping[selectedtime]}`
);
} else {
showWarning = true;
Expand Down

0 comments on commit 9be9b35

Please sign in to comment.