提交 c4cc6de9 编写于 作者: d-u-a's avatar d-u-a

docs: update main.js

上级 5a7a4f5a
......@@ -17,4 +17,8 @@ app.$mount() //挂载Vue实例
```
也可以引用`vuex`,使用`Vue.use`引用插件,使用`Vue.prototype`添加全局变量,使用`Vue.component`注册全局组件。
不过无法使用`vue-router`,路由须在`pages.json`中进行配置。
\ No newline at end of file
不过无法使用`vue-router`,路由须在`pages.json`中进行配置。
**注意**
- nvue 暂不支持在 main.js 注册全局组件
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册