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

make wxc-result can add customer result type #252

Merged
merged 1 commit into from Apr 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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