]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
feat(hash): add wip hash history
authorEduardo San Martin Morote <posva13@gmail.com>
Sat, 12 Oct 2019 15:02:18 +0000 (17:02 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Sat, 12 Oct 2019 15:02:18 +0000 (17:02 +0200)
src/history/hash.2.ts [new file with mode: 0644]

diff --git a/src/history/hash.2.ts b/src/history/hash.2.ts
new file mode 100644 (file)
index 0000000..583a305
--- /dev/null
@@ -0,0 +1,8 @@
+import { RouterHistory } from './common'
+import createHistory from './html5.2'
+
+export default function createHashHistory(): RouterHistory {
+  // Make sure this implementation is fine in terms of encoding, specially for IE11
+  // @ts-ignore: TODO: implement it in history first
+  return createHistory('/#/')
+}