diff --git a/.vscode/settings.json b/.vscode/settings.json index 5c46832..5938032 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -84,12 +84,12 @@ "editor.defaultFormatter": "esbenp.prettier-vscode" }, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "[vue]": { "editor.codeActionsOnSave": { - "source.fixAll.eslint": true, - "source.fixAll.stylelint": true + "source.fixAll.eslint": "explicit", + "source.fixAll.stylelint": "explicit" }, "editor.defaultFormatter": "esbenp.prettier-vscode" }, diff --git a/src/router/index.ts b/src/router/index.ts index fe02090..31814a9 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -2,7 +2,7 @@ import { createRouter, createWebHistory, Router } from 'vue-router'; import routes from './routes'; const router: Router = createRouter({ - history: createWebHistory('/'), + history: createWebHistory(import.meta.env.BASE_URL), routes: routes, }); diff --git a/vite.config.ts b/vite.config.ts index e059396..8e1e979 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,6 +15,7 @@ export default function ({ command, mode }: ConfigEnv): UserConfig { const viteEnv = wrapperEnv(env); return { + base: '/', root, resolve: { alias: [