Skip to content

Commit 8f4d5bb

Browse files
committed
feat(core): support hooks in mixin
re #1849
1 parent b068f80 commit 8f4d5bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/weapp/init/mixins.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function initStrats () {
2121

2222
strats = config.optionMergeStrategies;
2323

24-
strats.data = strats.props = strats.methods = strats.computed = strats.watch = function (output, option, key, data) {
24+
strats.data = strats.props = strats.methods = strats.computed = strats.watch = strats.hooks = function (output, option, key, data) {
2525
option[key] = simpleMerge(option[key], data);
2626
};
2727

0 commit comments

Comments
 (0)