mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2026-07-07 23:32:33 +00:00
Fix validation guard for router (#520)
This commit is contained in:
@@ -55,9 +55,7 @@ export function createValidationGuard() {
|
||||
// Validate route parameters if needed
|
||||
if (to.params && Object.keys(to.params).length > 0) {
|
||||
// Add custom validation logic here
|
||||
const hasValidParams = Object.values(to.params).every(
|
||||
(param) => param !== undefined && param !== null && param !== "",
|
||||
);
|
||||
const hasValidParams = Object.values(to.params).every((param) => param !== undefined);
|
||||
|
||||
if (!hasValidParams) {
|
||||
next({ name: "NotFound" });
|
||||
|
||||
Reference in New Issue
Block a user