We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef1c3a commit 8da3b83Copy full SHA for 8da3b83
app/web/framework/entry/template.js
@@ -1,6 +1,7 @@
1
import Layout from 'component/layout/index';
2
import plugin from 'framework/plugin';
3
4
+// vue-entry-loader 自定义全局注册钩子,如果在该目录下面存在该 template.js 框架自动加载,用于注册全局的组件
5
export default function(Vue) {
6
Vue.use(plugin);
7
Vue.component(Layout.name, Layout);
app/web/framework/plugin/index.js
@@ -9,6 +9,7 @@ export default {
9
if (!Vue.prototype.hasOwnProperty('$request')) {
10
Vue.prototype.$request = request;
11
}
12
+ // 自定义 hook 钩子,vue-entry-loader 自动加载
13
if (!Vue.hook) {
14
Vue.use(VueI18n);
15
Vue.hook = {
0 commit comments