Fix(settings): fix settings view refreshing #191
@@ -38,9 +38,8 @@ const activePath = computed(() => {
|
|||||||
const activeSection = ref(null);
|
const activeSection = ref(null);
|
||||||
const updateSettings = async function updateSettings() {
|
const updateSettings = async function updateSettings() {
|
||||||
const setting = getSettingRecursively(activePath.value, settings);
|
const setting = getSettingRecursively(activePath.value, settings);
|
||||||
if (setting) {
|
activeSection.value = setting;
|
||||||
activeSection.value = setting;
|
if (!setting) {
|
||||||
} else {
|
|
||||||
await router.push('/settings');
|
await router.push('/settings');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user