When the nesting of $uibModal appears, how to control the z-index of the second one

When

$uibModal is nested, how do I control that the second model appears on top of the first one? And the first one doesn"t disappear when the second one is closed?

Mar.11,2022

1, $uibModal the second will appear on the first
2, each modal is an independent instance, that closes itself
3, most application scenarios do not need to close the first
4, you can control the first to close

through the code.
Menu