Common component: there is a method to call the interface in bar.vue
.
methods: {wishSign () {}}
Public template: cn.vue
bar.vue
import VMbar from"~ / components/base/bar";
Interface: datail.vue
requirements: I think how to trigger a method in bar.vue in a click event in datail.vue. I can"t get the methods in bar.vue with ref. Mainly in the public template: cn.vue is called globally. I can"t get the methods in bar.vue directly. How to call the wishSign method in datail.