From c3bbf3b646cc6d2d1886126b083ef815f76721f7 Mon Sep 17 00:00:00 2001 From: blazeware <174893571@qq.com> Date: Mon, 27 Jun 2022 01:33:09 +0000 Subject: [PATCH] =?UTF-8?q?update=20docs/collocation/main.md.=20vue3?= =?UTF-8?q?=E4=B8=AD=E6=B7=BB=E5=8A=A0=E5=85=A8=E5=B1=80=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E7=9A=84=E6=96=B9=E6=B3=95=E4=B8=8D=E6=98=AFVue.prototype?= =?UTF-8?q?=EF=BC=8C=E8=80=8C=E6=98=AF=20app.config.globalProperties?= =?UTF-8?q?=EF=BC=8C=E8=AF=B7=E6=9B=B4=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/collocation/main.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/collocation/main.md b/docs/collocation/main.md index 234b3efa8..9d8792e4e 100644 --- a/docs/collocation/main.md +++ b/docs/collocation/main.md @@ -37,7 +37,7 @@ export function createApp() { ::: -使用`Vue.use`引用插件,使用`Vue.prototype`添加全局变量,使用`Vue.component`注册全局组件。 +使用`Vue.use`引用插件,Vue2中使用`Vue.prototype`添加全局变量,Vue3中使用`app.config.globalProperties`添加全局变量,使用`Vue.component`注册全局组件。 可以引用`vuex`,因涉及多个文件,此处没有提供示例,详见`hello uni-app`示例工程。 -- Gitee