Skip to content

Commit

Permalink
feat: pre-cmmit外部页面-bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
wang01h2 committed Apr 28, 2022
1 parent 0cb553d commit 3551d17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/layouts/default/sidebar/components/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const routeStore = useRouteStore()
const menus = ref<RouteModuleList>([])
const handleClick = (path: string, src: string, name: string) => {
if (src) {
router.push({ name: path, params: { src } })
router.push({ name, params: { src } })
}
else {
router.push(path)
Expand Down
2 changes: 1 addition & 1 deletion src/router/routes/modules/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const route: RouteRecordRaw = {
props: true,
meta: {
title: '项目文档 (内嵌)',
frameSrc: 'https://vue-hbs-admin-docs.netlify.app/',
frameSrc: 'https://vue-hbs-admin-docs.netlify.app',
sort: 1
}
},
Expand Down
2 changes: 2 additions & 0 deletions types/routes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ declare module 'vue-router' {
icon?: FunctionalComponent
// 是否是单独的菜单
single?: boolean
// 内链地址
frameSrc?: string
}
}

0 comments on commit 3551d17

Please sign in to comment.