289f85d9e
Adam
提交
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
export const behavior = Behavior({
methods: {
set(data, callback) {
return new Promise(resolve => {
this.setData(data, () => {
if (callback && typeof callback === 'function') {
callback.call(this);
}
resolve();
});
});
}
}
});
|