mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
fix: 完善提示
This commit is contained in:
parent
a670c5e10e
commit
4fd4abbcf8
@ -55,12 +55,12 @@ const getRoutePath = function (parentRoutePath, fileName, isFile = true) {
|
||||
}
|
||||
// /@id.vue -> /:id
|
||||
if (fileName.startsWith('@')) {
|
||||
logger.warn(`[WARNING]: ${fileName} is deprecated, please use [slug]`);
|
||||
logger.warn(`[WARNING]: filename or directory ${fileName} is deprecated, please use [${fileName.replace(/@/, '')}]`);
|
||||
fileName = fileName.replace(/@/, ':');
|
||||
}
|
||||
// /*.vue -> :pathMatch(.*)
|
||||
if (fileName.includes('*')) {
|
||||
logger.warn(`[WARNING]: ${fileName} is deprecated, please use [...slug]`);
|
||||
logger.warn(`[WARNING]: filename or directory ${fileName} is deprecated, please use ${fileName.replace('*', '[...]')}`);
|
||||
fileName = fileName.replace('*', ':pathMatch(.*)');
|
||||
}
|
||||
// /[slug].vue -> /:slug
|
||||
|
Loading…
x
Reference in New Issue
Block a user