chore(lite): switch from actual routes to hash routes (#6372)

XCP-ng web servers only serve the HTML on /xolite.html. This allows XO Lite to
still work when opened on a route that is different than /.
This commit is contained in:
Pierre Donias 2022-08-18 16:29:09 +02:00 committed by Julien Fontanet
parent 0fc797f7d0
commit 77f4a09d74

View File

@ -1,4 +1,4 @@
import { createRouter, createWebHistory } from "vue-router";
import { createRouter, createWebHashHistory } from "vue-router";
import pool from "@/router/pool";
import HomeView from "@/views/HomeView.vue";
import HostDashboardView from "@/views/host/HostDashboardView.vue";
@ -7,7 +7,7 @@ import VmConsoleView from "@/views/vm/VmConsoleView.vue";
import VmRootView from "@/views/vm/VmRootView.vue";
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
history: createWebHashHistory(),
routes: [
{
path: "/",