update:修改router为histroymode

This commit is contained in:
2022-01-19 09:28:15 +08:00
parent f61688ef8e
commit 5255ae5d97
2 changed files with 13 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
import { createRouter, createWebHashHistory } from "vue-router";
import { createRouter, createWebHistory } from "vue-router";
const files = require.context("@/views", true, /\.vue$/);
let pages = [];
const genRoutes = [];
@@ -54,8 +54,7 @@ pages
const routes = [...genRoutes];
const router = createRouter({
history: createWebHashHistory(),
history: createWebHistory("/spa"),
routes
});
export default router;