feat: make settings typed and store "12" and "24" over "12-hour" and "24-hour" internally
This commit is contained in:
parent
eb49450756
commit
195322f3b0
5 changed files with 32 additions and 11 deletions
3
app.vue
3
app.vue
|
@ -8,7 +8,6 @@
|
|||
<script lang="ts" setup>
|
||||
import ContextMenu from '~/components/ContextMenu.vue';
|
||||
import { render } from 'vue';
|
||||
import settingLoad from './utils/settingLoad';
|
||||
|
||||
const banner = useState("banner", () => false);
|
||||
|
||||
|
@ -44,7 +43,7 @@ function contextMenuHandler(e: MouseEvent) {
|
|||
//]);
|
||||
}
|
||||
|
||||
const currentTheme = settingLoad("selectedThemeUrl") ?? "dark"
|
||||
const currentTheme = settingsLoad().selectedThemeId ?? "dark"
|
||||
const baseURL = useRuntimeConfig().app.baseURL;
|
||||
|
||||
useHead({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue