提交 f8b8c51e 编写于 作者: U ULIVZ

chore: clean expired code

上级 fe3c2d15
import Vue from 'vue'
import { loadComponent } from '@internal/async-component'
/**
* Inject option to Vue SFC
* @param {object} options
......@@ -38,13 +35,6 @@ export function findPageForPath (pages, path) {
}
}
export function registerComponent (key) {
return loadComponent(key).then(comp => {
Vue.component(key, comp.default)
return comp.default
})
}
/**
* Normalize config.
* This utility is mainly for plugin developers. For some
......
......@@ -14,7 +14,7 @@ module.exports = (options, ctx) => ({
*/
function importCode () {
return `
import { injectComponentOption, registerComponent } from '@app/util'
import { injectComponentOption } from '@app/util'
import rootMixins from '@internal/root-mixins'
import components from '@internal/layout-components'
import LayoutDistributor from '@app/components/LayoutDistributor.vue'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册