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 route = useRoute();
|
||||||
|
|
||||||
const { getColorScheme, updateColorScheme } = useColorScheme();
|
const { getColorScheme, updateColorScheme } = useColorScheme();
|
||||||
const colorScheme = ref(null);
|
const colorScheme = ref('auto');
|
||||||
provide('colorScheme', colorScheme);
|
provide('colorScheme', colorScheme);
|
||||||
watch(colorScheme, (newValue) => {
|
watch(colorScheme, (newValue) => {
|
||||||
updateColorScheme(newValue);
|
updateColorScheme(newValue);
|
||||||
|
|||||||
@@ -40,15 +40,5 @@ export const useSettings = function useSettings () {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
return { getSetting };
|
||||||
* 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 };
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user