Skip to content

Commit

Permalink
chore: update demo deployment setup
Browse files Browse the repository at this point in the history
  • Loading branch information
shunnNet committed Oct 15, 2024
1 parent 6cbe065 commit ee9605f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modal/modalRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const createModalRouter = (
direct?: boolean
},
) => {
const routerHistory = createWebHistory()
const routerHistory = createWebHistory('/vue-modal-route')
const router = createRouter({
...options,
routes: transformToModalRoute(options.routes as RouteRecordRaw[]),
Expand Down
1 change: 1 addition & 0 deletions src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import ModalQueryA from '~/components/ModalQueryA.vue'
import { createModalRouter } from '~/modal'

export const router = createModalRouter({

routes: [
{
name: 'PageSingleModal',
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
// https://vitejs.dev/guide/build.html#library-mode
export default defineConfig({
// base: '/dist',
base: '/vue-modal-route',
plugins: [
vue(),
UnoCSS(),
Expand Down

0 comments on commit ee9605f

Please sign in to comment.