pull/9/head
tjz 2018-01-20 21:04:31 +08:00
parent 12facb0623
commit 7f083cb99c
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
const AsyncComp = () => {
const pathnameArr = window.location.pathname.split('/')
const com = pathnameArr[1] || 'button'
const com = pathnameArr[1] || 'button' // eslint-disable-line
const demo = pathnameArr[2] || 'index'
return {
component: import(`../components/card/demo/${demo}.vue`),