mirror of
https://github.com/BluemediaDev/video-platform.git
synced 2024-12-22 06:45:28 +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 Home from "../views/Home.vue";
|
||||||
import Watch from "../views/Watch.vue";
|
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
|
@ -11,12 +10,12 @@ const routes = [
|
||||||
{
|
{
|
||||||
path: "/watch",
|
path: "/watch",
|
||||||
name: "watch",
|
name: "watch",
|
||||||
component: Watch,
|
component: import("@/views/Watch"),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHashHistory(),
|
history: createWebHistory(),
|
||||||
routes,
|
routes,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue