Skip to content

Commit

Permalink
fix: remote path | target not work
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Nov 26, 2020
1 parent da2392e commit 22a3bf3
Show file tree
Hide file tree
Showing 5 changed files with 28,327 additions and 4 deletions.
9 changes: 9 additions & 0 deletions examples/src/config/router.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ const asyncRouterMap = [
icon: 'smile'
},
component: () => import(/* webpackChunkName: "about" */ '../views/TestPage3')
},
{
path: 'http://www.baidu.com/',
name: 'remote-baidu',
meta: {
title: '百度',
icon: 'smile',
target: '_blank'
}
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion examples/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Vue.use(VueRouter)
const routes = asyncRouterMap

const router = new VueRouter({
mode: 'history',
mode: 'hash',
routes
})

Expand Down
Loading

0 comments on commit 22a3bf3

Please sign in to comment.