mirror of
https://github.com/BluemediaGER/video-platform.git
synced 2024-11-12 21:35:29 +01:00
Use router history mode
This commit is contained in:
parent
bb4da8bbb4
commit
5876d29689
|
@ -1,6 +1,5 @@
|
|||
import { createRouter, createWebHashHistory } from "vue-router";
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
import Home from "../views/Home.vue";
|
||||
import Watch from "../views/Watch.vue";
|
||||
|
||||
const routes = [
|
||||
{
|
||||
|
@ -11,12 +10,12 @@ const routes = [
|
|||
{
|
||||
path: "/watch",
|
||||
name: "watch",
|
||||
component: Watch,
|
||||
component: import("@/views/Watch"),
|
||||
},
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue