We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d737a92 commit 0772b2bCopy full SHA for 0772b2b
1 file changed
adminforth/spa/src/views/SettingsView.vue
@@ -71,15 +71,17 @@ watch(dropdownUserButton, (el) => {
71
});
72
73
onMounted(async () => {
74
- await loadMenu();
75
- loginRedirectCheckIsReady.value = true;
76
- const routeParamsPage = route?.params?.page;
77
- if (!routeParamsPage) {
78
- if (coreStore.config?.settingPages?.[0]) {
79
- setURL(coreStore.config.settingPages[0]);
+ if (coreStore.adminUser) {
+ await loadMenu();
+ loginRedirectCheckIsReady.value = true;
+ const routeParamsPage = route?.params?.page;
+ if (!routeParamsPage) {
+ if (coreStore.config?.settingPages?.[0]) {
80
+ setURL(coreStore.config.settingPages[0]);
81
+ }
82
+ } else {
83
+ handleURLChange(routeParamsPage as string | null);
84
}
- } else {
- handleURLChange(routeParamsPage as string | null);
85
86
87
0 commit comments