在 UniApp 中,使用 window.open('#/11', '_blank') 打开一个新的页面时,并不会触发路由的变化,因为它是通过浏览器的方式打开新的页面,而不是通过 UniApp 的路由系统进行跳转。

如果需要在打开新页面的同时触发路由的变化,可以使用 uni.navigateTo 或 uni.redirectTo 方法进行跳转。

如果需要在新页面中打开其他页面,可以使用 uni.navigateBack 方法返回到原来的页面,然后再使用 uni.navigateTo 或 uni.redirectTo 进行跳转。

UniApp Webview 中 window.open() 不触发路由变化的解决方法