瀏覽代碼

fix default web history provider

Evan Almloff 2 年之前
父節點
當前提交
33f0e30369
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/router/src/router_cfg.rs

+ 1 - 1
packages/router/src/router_cfg.rs

@@ -39,7 +39,7 @@ where
             failure_external_navigation: FailureExternalNavigation::<R>,
             history: {
                 #[cfg(all(target_arch = "wasm32", feature = "web"))]
-                let history = Box::<MemoryHistory<R>>::default();
+                let history = Box::<WebHistory<R>>::default();
                 #[cfg(not(all(target_arch = "wasm32", feature = "web")))]
                 let history = Box::<MemoryHistory<R>>::default();
                 history