generated from Seekra/repository-template
feat(settings): Remove parameter 'url' from the loading function of the settings composable
This commit is contained in:
@@ -26,11 +26,11 @@ const loading = ref(false);
|
|||||||
* The config is loaded once and shared across all consumers.
|
* The config is loaded once and shared across all consumers.
|
||||||
*/
|
*/
|
||||||
export function useSettingsConfig() {
|
export function useSettingsConfig() {
|
||||||
async function load(url = '/settings.json') {
|
async function load() {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
error.value = null;
|
error.value = null;
|
||||||
try {
|
try {
|
||||||
config.value = await loadSettingsConfig(url);
|
config.value = await loadSettingsConfig();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
error.value = e.message;
|
error.value = e.message;
|
||||||
config.value = null;
|
config.value = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user