完成mixin的学习

new_branch1
roger 2 years ago
parent 287bc7dfc3
commit 29403d0f84
  1. 2
      20_脚手架/vue_code/src/components/School.vue
  2. 2
      20_脚手架/vue_code/src/components/Student.vue

@ -19,7 +19,7 @@ export default {
}
},
mounted() {
console.log("欢迎学校") // mixinvc
console.log(this.msg) // mixinvc
},
//
// mixins: [mixin_method1, mixin_method2]

@ -19,7 +19,7 @@ export default {
}
},
mounted() {
console.log("欢迎学生")
console.log(this.msg)
},
//
// mixins: [mixin_method1, mixin_method2]

Loading…
Cancel
Save