Skip to content

Commit

Permalink
fix router warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mubaidr committed Sep 5, 2023
1 parent a9f298e commit 748f25f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/content-script/iframe/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import '../../assets/base.scss'
import App from './app.vue'
import './index.scss'

routes.push({
path: '/',
redirect: '/iframe',
})

const router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL),
routes,
Expand Down
5 changes: 5 additions & 0 deletions src/options/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import '../assets/base.scss'
import App from './app.vue'
import './index.scss'

routes.push({
path: '/',
redirect: '/options',
})

const router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL),
routes,
Expand Down
5 changes: 5 additions & 0 deletions src/popup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import '../assets/base.scss'
import App from './app.vue'
import './index.scss'

routes.push({
path: '/',
redirect: '/popup',
})

const router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL),
routes,
Expand Down

0 comments on commit 748f25f

Please sign in to comment.