File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
layers/base/app/components Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,15 @@ const cookie = useBcCookie<'dark' | 'light'>('theme')
44colorMode .preference = cookie .value || ' dark'
55const handleUpdate = () => {
66 cookie .value = colorMode .preference as ' dark' | ' light'
7+ window .localStorage .setItem (' theme' , colorMode .preference )
78}
89 </script >
910
1011<template >
12+ <pre >
13+ {{ colorMode }}
14+ {{ cookie }}
15+ </pre >
1116 <BaseSwitch
1217 v-model =" colorMode.preference"
1318 class =" w-fit"
Original file line number Diff line number Diff line change @@ -71,6 +71,13 @@ export default defineNuxtConfig({
7171 'resize-detector' ,
7272 ] ,
7373 } ,
74+ routeRules : {
75+ '**' : {
76+ headers : {
77+ 'Cache-Control' : 'no-store' ,
78+ } ,
79+ } ,
80+ } ,
7481 devServer : {
7582 host : 'local.beaconcha.in' ,
7683 https : {
You can’t perform that action at this time.
0 commit comments