Lines 137-154
export const useNavigationStore = defineStore("navigation", {
Link Here
|
137 |
} |
137 |
} |
138 |
|
138 |
|
139 |
function _mapMatches(currentMatches, params) { |
139 |
function _mapMatches(currentMatches, params) { |
140 |
return currentMatches |
140 |
const matches = currentMatches |
141 |
.filter(match => _isBaseOrNotStub(match.meta.self)) |
141 |
.filter(match => _isBaseOrNotStub(match.meta.self)) |
142 |
.filter(match => _isEmptyNode(match.meta.self)) |
142 |
.filter(match => _isEmptyNode(match.meta.self)) |
143 |
.map(match => { |
143 |
.map(match => { |
144 |
let path = _getPath(match, params); |
144 |
let path = _getPath(match, params); |
145 |
return { |
145 |
const externalPath = path.includes(".pl"); |
|
|
146 |
const test = { |
146 |
...match.meta.self, |
147 |
...match.meta.self, |
147 |
icon: null, |
148 |
icon: null, |
148 |
path, |
149 |
...(externalPath |
|
|
150 |
? { href: path, path: null } |
151 |
: { path }), |
149 |
children: null, |
152 |
children: null, |
150 |
}; |
153 |
}; |
|
|
154 |
return test; |
151 |
}); |
155 |
}); |
|
|
156 |
return matches; |
152 |
} |
157 |
} |
153 |
}, |
158 |
}, |
154 |
leftNavigation() { |
159 |
leftNavigation() { |
155 |
- |
|
|