2019-12-23 14:09:31 +08:00

9 lines
207 B
JavaScript

export const behavior = Behavior({
methods: {
set(data, callback) {
this.setData(data, callback);
return new Promise(resolve => wx.nextTick(resolve));
}
}
});