Skip to content

Commit

Permalink
fix(ui): Use web hash history in ui (fix vitest-dev#3481)
Browse files Browse the repository at this point in the history
  • Loading branch information
segevfiner committed Jun 1, 2023
1 parent be93032 commit fc9ce52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/ui/client/global-setup.ts
@@ -1,6 +1,6 @@
/// <reference types="vite-plugin-pages/client" />

import { createRouter as _createRouter, createWebHistory } from 'vue-router'
import { createRouter as _createRouter, createWebHashHistory } from 'vue-router'
import FloatingVue, { VTooltip } from 'floating-vue'
import routes from 'virtual:generated-pages'
import 'd3-graph-controller/default.css'
Expand All @@ -11,7 +11,6 @@ import 'codemirror-theme-vars/base.css'
import './styles/main.css'
import 'floating-vue/dist/style.css'
import 'uno.css'
import { BASE_PATH } from './constants'

export const directives = {
tooltip: VTooltip,
Expand All @@ -22,7 +21,7 @@ FloatingVue.options.distance = 10

export function createRouter() {
return _createRouter({
history: createWebHistory(BASE_PATH),
history: createWebHashHistory(),
routes,
})
}
Expand Down

0 comments on commit fc9ce52

Please sign in to comment.