File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -71,15 +71,17 @@ watch(dropdownUserButton, (el) => {
7171});
7272
7373onMounted (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 ]);
74+ if (coreStore .adminUser ) {
75+ await loadMenu ();
76+ loginRedirectCheckIsReady .value = true ;
77+ const routeParamsPage = route ?.params ?.page ;
78+ if (! routeParamsPage ) {
79+ if (coreStore .config ?.settingPages ?.[0 ]) {
80+ setURL (coreStore .config .settingPages [0 ]);
81+ }
82+ } else {
83+ handleURLChange (routeParamsPage as string | null );
8084 }
81- } else {
82- handleURLChange (routeParamsPage as string | null );
8385 }
8486});
8587
You can’t perform that action at this time.
0 commit comments