VueRouter: support for non-root paths (e.g. homeassistant) (#3413)

This commit is contained in:
Michael Geers 2022-05-19 23:40:38 +02:00 • committed by GitHub
parent 11aa6ef5c0
commit 00dc461fdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 21 deletions

View file

@ -1,8 +1,8 @@
import { createRouter, createWebHistory } from "vue-router";
import { createRouter, createWebHashHistory } from "vue-router";
import Main from "./views/Main.vue";
export default createRouter({
history: createWebHistory(),
history: createWebHashHistory(),
routes: [{ path: "/", component: Main, props: true }],
});

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View file

@ -20,7 +20,7 @@
<meta name="theme-color" content="#28293e" />
<title>evcc</title>
<script type="module" crossorigin src="./assets/index.1062968a.js"></script>
<script type="module" crossorigin src="./assets/index.fce5e1db.js"></script>
<link rel="stylesheet" href="./assets/index.d9d5300d.css">
</head>
<body>