改为 Hash 路由模式
This commit is contained in:
parent
ae808e9d4c
commit
a5e9d9853f
@ -1,8 +1,8 @@
|
|||||||
import { createRouter, createWebHistory } from "vue-router";
|
import { createRouter, createWebHashHistory } from "vue-router";
|
||||||
import { installRouteGuard } from "../utils/routeGuard.js";
|
import { installRouteGuard } from "../utils/routeGuard.js";
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(import.meta.env.BASE_URL),
|
history: createWebHashHistory(import.meta.env.BASE_URL),
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user