Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: modify project base path and route path #9

Merged
merged 1 commit into from
Jan 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/' : '/',
})