提交 64f9cbe6 编写于 作者: 陈帅

fix #1707 Duplicate classname

上级 08739b59
......@@ -38,7 +38,7 @@ export default {
return localName;
}
let antdProPath = context.resourcePath.match(/src(.*)/)[1];
let antdProPath = context.resourcePath.match(/src(.*)/)[1].replace('.less', '');
if (context.resourcePath.includes('components')) {
antdProPath = antdProPath.replace('components/', '');
}
......@@ -46,7 +46,6 @@ export default {
.split('/')
.map(a => a.replace(/([A-Z])/g, '-$1'))
.map(a => a.toLowerCase());
arr.pop();
return `antd-pro${arr.join('-')}-${localName}`.replace('--', '-');
},
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册