Skip to content

Commit

Permalink
docs: update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dcloudhdx committed Sep 18, 2019
1 parent 5a7a4f5 commit c4cc6de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/collocation/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ app.$mount() //挂载Vue实例
```
也可以引用`vuex`,使用`Vue.use`引用插件,使用`Vue.prototype`添加全局变量,使用`Vue.component`注册全局组件。

不过无法使用`vue-router`,路由须在`pages.json`中进行配置。
不过无法使用`vue-router`,路由须在`pages.json`中进行配置。


**注意**
- nvue 暂不支持在 main.js 注册全局组件

0 comments on commit c4cc6de

Please sign in to comment.