這應(yīng)該是RxJS升級導(dǎo)致的,參考issue。 方法一 在所有的route里加上pathMath:"full",如 1 2 3 4 5 6 const routes: Routes = [ { path:"", component: IndexComponent }, { path:"home", component: HomeComponent }, { path:"about", component: AboutComponent }, ...
www.dbjr.com.cn/article/1379...htm 2025-6-7