this.$emit is not a function