src/router/index.js
@@ -1,8 +1,9 @@ import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router' import Layout from "@/layout/index.vue"; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), // history: createWebHistory(import.meta.env.BASE_URL), history: createWebHashHistory(), routes: [ { path: '/',