diff --git a/.gitignore b/.gitignore index 403adbc..6e67175 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ .DS_Store node_modules -/dist +/docs # local env files diff --git a/src/router/index.ts b/src/router/index.ts index 60077ae..a6bea4e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,4 +1,4 @@ -import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router' +import { createRouter, createWebHistory, RouteRecordRaw,createWebHashHistory } from 'vue-router' import Layout from "@/layout/index.vue"; @@ -38,7 +38,8 @@ export const asyncRoutes = [ ] const router = createRouter({ - history: createWebHistory(process.env.BASE_URL), + // history: createWebHistory(process.env.BASE_URL), // history + history: createWebHashHistory(), // hash routes:constantRoutes })