update:修改router为histroymode
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user