Pre Merge pull request !4 from 水王/CH/fix/animation

This commit is contained in:
水王 2024-05-03 04:30:55 +00:00 committed by Gitee
commit 5ad1389f7b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -101,7 +101,7 @@ export default {
}
const match = context.resourcePath.match(/src(.*)/);
if (match && match[1]) {
const antdProPath = match[1].replace('.less', '');
const antdProPath = match[1].replace('.less', '').replace('.css', '').replace('.scss', '').replace('sass', '');
const arr = slash(antdProPath)
.split('/')
.map(a => a.replace(/([A-Z])/g, '-$1'))