From 29403d0f846bc035638cf3b9752334de4c7fbb53 Mon Sep 17 00:00:00 2001 From: roger Date: Fri, 13 Jan 2023 18:06:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90mixin=E7=9A=84=E5=AD=A6?= =?UTF-8?q?=E4=B9=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 20_脚手架/vue_code/src/components/School.vue | 2 +- 20_脚手架/vue_code/src/components/Student.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/20_脚手架/vue_code/src/components/School.vue b/20_脚手架/vue_code/src/components/School.vue index 684a3ed..028b976 100644 --- a/20_脚手架/vue_code/src/components/School.vue +++ b/20_脚手架/vue_code/src/components/School.vue @@ -19,7 +19,7 @@ export default { } }, mounted() { - console.log("欢迎学校") // mixin和vc内的都要执行 + console.log(this.msg) // mixin和vc内的都要执行 }, // 局部混合 // mixins: [mixin_method1, mixin_method2] diff --git a/20_脚手架/vue_code/src/components/Student.vue b/20_脚手架/vue_code/src/components/Student.vue index 621788a..f493a7c 100644 --- a/20_脚手架/vue_code/src/components/Student.vue +++ b/20_脚手架/vue_code/src/components/Student.vue @@ -19,7 +19,7 @@ export default { } }, mounted() { - console.log("欢迎学生") + console.log(this.msg) }, // 局部混合 // mixins: [mixin_method1, mixin_method2]