File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const useRouteStore = defineStore(
36
36
routes . forEach ( ( route ) => {
37
37
if ( route . children ) {
38
38
const childrenBaseUrl = resolveRoutePath ( baseUrl , route . path )
39
- const childrenBaseAuth = baseAuth ? ? route . meta ?. auth
39
+ const childrenBaseAuth = ! baseAuth || baseAuth === '' || baseAuth ?. length === 0 ? route . meta ?. auth : baseAuth
40
40
const tmpBreadcrumb = cloneDeep ( breadcrumb )
41
41
tmpBreadcrumb . push ( {
42
42
path : childrenBaseUrl ,
@@ -82,7 +82,7 @@ const useRouteStore = defineStore(
82
82
if ( ! tmpRoute . meta ) {
83
83
tmpRoute . meta = { }
84
84
}
85
- tmpRoute . meta . auth = baseAuth ? ? tmpRoute . meta ?. auth
85
+ tmpRoute . meta . auth = ! baseAuth || baseAuth === '' || baseAuth ?. length === 0 ? tmpRoute . meta ?. auth : baseAuth
86
86
tmpRoute . meta . breadcrumbNeste = tmpBreadcrumb
87
87
res . push ( tmpRoute )
88
88
}
You can’t perform that action at this time.
0 commit comments