diff --git a/src/router/index.js b/src/router/index.js index e502b87..2dd015c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,4 +1,4 @@ -import { createRouter, createWebHistory } from 'vue-router' +import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router' import Dashboard from '../views/Dashboard.vue' import HomePage from '../views/HomePage.vue' import PromptsLibrary from '../views/PromptsLibrary.vue' @@ -87,10 +87,10 @@ const routes = [ } ] } -] + ] const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), + history: createWebHashHistory(), routes }) diff --git a/vite.config.js b/vite.config.js index 9ca171b..92b3905 100644 --- a/vite.config.js +++ b/vite.config.js @@ -6,6 +6,7 @@ import { ElementPlusResolver } from 'unplugin-vue-components/resolvers' import { resolve } from 'path' export default defineConfig({ + base: './', plugins: [ vue(), AutoImport({