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]