aboutsummaryrefslogtreecommitdiff
path: root/src/router.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/router.ts')
-rw-r--r--src/router.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/router.ts b/src/router.ts
index 05f9fa3..38bda96 100644
--- a/src/router.ts
+++ b/src/router.ts
@@ -3,6 +3,7 @@ import { createRouter, createWebHistory } from 'vue-router';
import HomePage from './pages/Home.page.vue';
import NotFound from './pages/404.page.vue';
import { tools } from './tools';
+import { config } from './config';
const toolsRoutes = tools.map(({ path, name, component, ...config }) => ({
path,
@@ -17,7 +18,7 @@ const toolsRedirectRoutes = tools
);
const router = createRouter({
- history: createWebHistory(import.meta.env.BASE_URL),
+ history: createWebHistory(config.app.baseUrl),
routes: [
{
path: '/',