Skip to content

Commit

Permalink
fix: modify project base path and route path
Browse files Browse the repository at this point in the history
  • Loading branch information
yeeway committed Jan 14, 2024
1 parent 9943894 commit 2b8f7ab
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/dist/router.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ _letterToHighSchoolStudents["default"].map(function (letter) {
});

var router = (0, _vueRouter.createRouter)({
history: (0, _vueRouter.createWebHistory)(),
history: (0, _vueRouter.createWebHistory)('/BikeFestival17th-Frontend/'),
routes: routes
});
var _default = router;
Expand Down
2 changes: 1 addition & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ letterToHighSchoolStudentsData.map((letter) => {
});

const router = createRouter({
history: createWebHistory(),
history: createWebHistory('/BikeFestival17th-Frontend/'),
routes,
});

Expand Down
2 changes: 1 addition & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
font-family: "Noto Sans TC", sans-serif;
}
body {
background-image: url(../public/bg_noise_texture.svg);
background-image: url(/public/bg_noise_texture.svg);
background-color: #FFF8F2;
}
}
3 changes: 3 additions & 0 deletions src/views/About.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<template>
<h1 class="text-3xl font-bold">關於單車節</h1>
<h1 class="text-3xl font-bold">關於單車節</h1>
<h1 class="text-3xl font-bold">關於單車節</h1>
<h1 class="text-3xl font-bold">關於單車節</h1>
</template>

3 changes: 3 additions & 0 deletions src/views/Info.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<template>
<h1 class="text-3xl font-bold">參加資訊</h1>
<h1 class="text-3xl font-bold">參加資訊</h1>
<h1 class="text-3xl font-bold">參加資訊</h1>
<h1 class="text-3xl font-bold">參加資訊</h1>
</template>


3 changes: 3 additions & 0 deletions src/views/Partners.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<template>
<h1 class="text-3xl font-bold">合作夥伴</h1>
<h1 class="text-3xl font-bold">合作夥伴</h1>
<h1 class="text-3xl font-bold">合作夥伴</h1>
<h1 class="text-3xl font-bold">合作夥伴</h1>
</template>

3 changes: 3 additions & 0 deletions src/views/Souvenir.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<template>
<h1 class="text-3xl font-bold">紀念品預購</h1>
<h1 class="text-3xl font-bold">紀念品預購</h1>
<h1 class="text-3xl font-bold">紀念品預購</h1>
<h1 class="text-3xl font-bold">紀念品預購</h1>
</template>

2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
base: '/',
base: process.env.NODE_ENV === 'production' ? '/BikeFestival17th-Frontend/' : '/',
})

0 comments on commit 2b8f7ab

Please sign in to comment.