generated from Seekra/repository-template
Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3b30591e2
|
||
|
|
6a06e61b0b
|
||
|
|
7b312e18b7
|
||
|
|
eb6fdac31f
|
||
|
|
8680305792
|
||
|
|
edb058898d
|
||
|
|
597d9062d2
|
||
|
|
81485728a3
|
+1
-1
@@ -26,7 +26,7 @@ import { useRoute } from 'vue-router';
|
||||
const route = useRoute();
|
||||
|
||||
const { getColorScheme, updateColorScheme } = useColorScheme();
|
||||
const colorScheme = ref(null);
|
||||
const colorScheme = ref('auto');
|
||||
provide('colorScheme', colorScheme);
|
||||
watch(colorScheme, (newValue) => {
|
||||
updateColorScheme(newValue);
|
||||
|
||||
@@ -40,15 +40,5 @@ export const useSettings = function useSettings () {
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Sets the value of a specific setting.
|
||||
* @param {string[]} key - The setting key.
|
||||
* @param value - The new value for the setting.
|
||||
*/
|
||||
const setSetting = function setSetting (key, value) {
|
||||
const settingsStore = useSettingsStore();
|
||||
settingsStore.set(key.join('.'), value);
|
||||
};
|
||||
|
||||
return { getSetting, setSetting };
|
||||
return { getSetting };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user