Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #252 from marekchen/patch-1
Browse files Browse the repository at this point in the history
[+] make wxc-result can add customer result type
  • Loading branch information
tw93 committed Apr 23, 2018
2 parents 6650332 + 0d43d45 commit 0a822f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wxc-result/index.vue
Expand Up @@ -109,7 +109,7 @@
const { type, customSet } = this;
const allTypes = Utils.isEmptyObject(customSet) ? TYPES : Utils.mergeDeep(TYPES, customSet);
let types = allTypes['errorPage'];
if (['errorPage', 'noGoods', 'noNetwork', 'errorLocation'].indexOf(type) > -1) {
if (Object.keys(allTypes).indexOf(type) > -1) {
types = allTypes[type];
}
return types;
Expand Down

0 comments on commit 0a822f9

Please sign in to comment.