From f12c174d8a6e59ec3d0475acb9f9892755c3c07e Mon Sep 17 00:00:00 2001 From: Pony <37097190+ponysb@users.noreply.github.com> Date: Fri, 20 Jun 2025 18:50:05 +0800 Subject: [PATCH] Add files via upload --- src/router/index.js | 6 +++--- vite.config.js | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) 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({