chore: fix demo (#5009)

This commit is contained in:
neverland
2019-11-14 16:12:46 +08:00
committed by GitHub
parent 9ee9b2ef38
commit 04df584a65

View File

@@ -80,6 +80,8 @@ Locale.add({
export function demoWrapper(module, name) {
const component = module.default;
name = 'demo-' + name;
component.name = name;
const { i18n: config } = component;
if (config) {