The problem of Mini Program api wx.setNavigationBarColor setting the color of the navigation bar on the page

after switching the bottom navigation, the new page still uses the default color, so does this api only set the top style of the current page? Is there any other way to implement all the style changes at the top of the page?

Mar.18,2022

in the global configuration app.json:

//app.json
"window": {
    "navigationBarTextStyle": "black",
  },
Menu