Skip to content

Commit 68856f0

Browse files
change base path to / instead of /egg
1 parent 2406659 commit 68856f0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/components/RestaurantCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="caption">
44
{{ restaurant.name }}
55
</div>
6-
<img :src="'/egg/restaurant_pictures/' + restaurant.id + '.jpg'"/>
6+
<img :src="'restaurant_pictures/' + restaurant.id + '.jpg'"/>
77
</div>
88
</template>
99

src/pages/RestaurantMap.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const markerIcon = L.icon({
1313
iconSize: [30, 30],
1414
iconAnchor: [15, 30],
1515
popupAnchor: [0, 0],
16-
iconUrl: '/egg/location.png',
16+
iconUrl: 'location.png',
1717
});
1818
1919
// Props
@@ -80,7 +80,7 @@ const addMarkers = () => {
8080
const popupContent = `
8181
<div class="custom-marker">
8282
<div class="title">${restaurant.name}</div>
83-
<img src="/egg/restaurant_pictures/${restaurant.id}.jpg" class="popup-image"/>
83+
<img src="restaurant_pictures/${restaurant.id}.jpg" class="popup-image"/>
8484
</div>
8585
`;
8686
const marker = L.marker([restaurant.lat, restaurant.long], {icon : markerIcon}).addTo(map.value);

src/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import RestaurantGrid from '@/pages/RestaurantGrid.vue';
33
import RestaurantMap from '@/pages/RestaurantMap.vue';
44

55
const router = createRouter({
6-
history: createWebHistory('/egg/'),
6+
history: createWebHistory('/'),
77
routes: [
88
{
99
path: '/grid',

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import vue from '@vitejs/plugin-vue'
88

99
// https://vite.dev/config/
1010
export default defineConfig({
11-
base: '/egg/',
11+
base: '/',
1212
css: {
1313
postcss: {
1414
plugins: [tailwind(), autoprefixer()],

0 commit comments

Comments
 (0)