mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 13:26:08 +10:00
15 lines
337 B
JavaScript
15 lines
337 B
JavaScript
import { createApp } from './app'
|
|
|
|
export default context => new Promise((resolve, reject) => {
|
|
const { app, router } = createApp()
|
|
const { url } = context
|
|
const { fullPath } = router.resolve(url).route
|
|
|
|
if (fullPath !== url) {
|
|
return reject({ url: fullPath })
|
|
}
|
|
|
|
router.push(url)
|
|
router.onReady(() => resolve(app))
|
|
})
|