diff --git a/src/router/index.js b/src/router/index.js index 5701bc4..1c0b9d0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,7 +2,7 @@ import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router import { setupRouterGuard } from './guard' import { basicRoutes } from './routes' -const isHash = !!import.meta.env.VITE_APP_USE_HASH +const isHash = import.meta.env.VITE_APP_USE_HASH === 'true' export const router = createRouter({ history: isHash ? createWebHashHistory('/') : createWebHistory('/'), routes: [],