fix: problem cast param id
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
4d4997951c
commit
0f9d727015
|
@ -71,6 +71,10 @@ export default route(function (/* { store, ssrContext } */) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (to.params.id && !/^\d+$/.test(to.params.id)) {
|
||||||
|
return next(to.matched[1]?.children[0]?.redirect);
|
||||||
|
}
|
||||||
|
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue