Skip to content

Commit 77df53c

Browse files
committed
fix: 修复逻辑,防止重复配置
1 parent 76ab3e2 commit 77df53c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/service/chainConfig.js

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = function chainDefault(api, vueConfig, _mapi) {
1818
.forEach(key => {
1919
if (!_.isUndefined(options[key])) { // 不兼容性修改
2020
vueConfig[key] = options[key];
21+
delete options[key]; // 交接所有能力
2122
}
2223
});
2324

@@ -29,6 +30,7 @@ module.exports = function chainDefault(api, vueConfig, _mapi) {
2930
.forEach(key => {
3031
if (!_.isEmpty(options[key]) && !_.isUndefined(options[key])) {
3132
vueConfig[key] = Object.assign({}, vueConfig[key] || {}, options[key] || {});
33+
delete options[key]; // 交接所有能力
3234
}
3335
});
3436

0 commit comments

Comments
 (0)