提交 e3674be5 编写于 作者: 雪洛's avatar 雪洛

update: 修复小程序端不能直接在模版内使用$emit的Bug askID:82865

上级 aef6a6e2
......@@ -5765,12 +5765,13 @@ function internalMixin(Vue) {
var oldEmit = Vue.prototype.$emit;
Vue.prototype.$emit = function(event) {
if (this.$scope && event) {
this.$scope['triggerEvent'](event, {
__args__: toArray(arguments, 1)
});
if (this.$scope && event) {
this.$scope['triggerEvent'](event, {
__args__: toArray(arguments, 1)
});
} else {
return oldEmit.apply(this, arguments)
}
return oldEmit.apply(this, arguments)
};
Vue.prototype.$nextTick = function(fn) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册