Make theme switching work properly when built for production
This commit is contained in:
parent
d3e562b267
commit
0bcfa05b6c
2 changed files with 2 additions and 2 deletions
|
|
@ -105,7 +105,7 @@ export default {
|
|||
watch: {
|
||||
chosen_theme(val) {
|
||||
localStorage.setItem(`tl-theme`, val);
|
||||
document.getElementById(`theme`).href = `/static/css/theme/${val}.css`;
|
||||
document.getElementById(`theme`).href = `static/css/theme/${val}.css`;
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue