调整路由拦截模式

This commit is contained in:
唐明明
2021-09-24 14:54:16 +08:00
parent 079b016896
commit 9c8b34cc30
5 changed files with 31 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ module.exports = {
new webpack.DefinePlugin({
ROUTES: webpack.DefinePlugin.runtimeValue(() => {
const tfPages = new TransformPages({
includes: ['path', 'name', 'aliasPath']
includes: ['path', 'name', 'aliasPath', 'auth']
});
return JSON.stringify(tfPages.routes)
}, true)