File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export interface Params {
3
3
view : null | 'graph' | 'editor' | 'console'
4
4
}
5
5
6
- export const params = useUrlSearchParams < Params > ( 'hash-params ' , {
6
+ export const params = useUrlSearchParams < Params > ( 'hash' , {
7
7
initialValue : {
8
8
file : '' ,
9
9
view : null ,
Original file line number Diff line number Diff line change 1
1
/// <reference types="vite-plugin-pages/client" />
2
2
3
- import { createRouter as _createRouter , createWebHistory } from 'vue-router'
3
+ import { createRouter as _createRouter , createWebHashHistory } from 'vue-router'
4
4
import FloatingVue , { VTooltip } from 'floating-vue'
5
5
import routes from 'virtual:generated-pages'
6
6
import 'd3-graph-controller/default.css'
@@ -11,7 +11,6 @@ import 'codemirror-theme-vars/base.css'
11
11
import './styles/main.css'
12
12
import 'floating-vue/dist/style.css'
13
13
import 'uno.css'
14
- import { BASE_PATH } from './constants'
15
14
16
15
export const directives = {
17
16
tooltip : VTooltip ,
@@ -22,7 +21,7 @@ FloatingVue.options.distance = 10
22
21
23
22
export function createRouter ( ) {
24
23
return _createRouter ( {
25
- history : createWebHistory ( BASE_PATH ) ,
24
+ history : createWebHashHistory ( ) ,
26
25
routes,
27
26
} )
28
27
}
You can’t perform that action at this time.
0 commit comments