fix: theme link not taking baseURL into account
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
d88f5d9aea
commit
ea44621adc
1 changed files with 3 additions and 1 deletions
4
app.vue
4
app.vue
|
@ -15,11 +15,13 @@ if (savedTheme) {
|
||||||
currentTheme = savedTheme;
|
currentTheme = savedTheme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const baseURL = useRuntimeConfig().app.baseURL;
|
||||||
|
|
||||||
useHead({
|
useHead({
|
||||||
link: [
|
link: [
|
||||||
{
|
{
|
||||||
rel: "stylesheet",
|
rel: "stylesheet",
|
||||||
href: `/themes/${currentTheme}.css`
|
href: `${baseURL}/themes/${currentTheme}.css`
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue