Commit c4afc772 authored by 刘斌's avatar 刘斌

fix: 测试查看路由

parent 4ecf6879
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<!-- 由 vite 注入 VITE_APP_TITLE 变量,在 .env 文件内配置 --> <!-- 由 vite 注入 VITE_APP_TITLE 变量,在 .env 文件内配置 -->
<title><%= VITE_APP_TITLE %></title> <title><%= VITE_APP_TITLE %></title>
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<script> <!-- <script>
// 生产环境下注入百度统计 // 生产环境下注入百度统计
if (window._VBEN_ADMIN_PRO_APP_CONF_) { if (window._VBEN_ADMIN_PRO_APP_CONF_) {
var _hmt = _hmt || []; var _hmt = _hmt || [];
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
s.parentNode.insertBefore(hm, s); s.parentNode.insertBefore(hm, s);
})(); })();
} }
</script> </script> -->
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -42,6 +42,7 @@ function convertRoutes( ...@@ -42,6 +42,7 @@ function convertRoutes(
layoutMap: ComponentRecordType, layoutMap: ComponentRecordType,
pageMap: ComponentRecordType, pageMap: ComponentRecordType,
): RouteRecordRaw[] { ): RouteRecordRaw[] {
console.log('[convertRoutes routes]', routes);
return mapTree(routes, (node) => { return mapTree(routes, (node) => {
const route = node as unknown as RouteRecordRaw; const route = node as unknown as RouteRecordRaw;
const { component, name } = node; const { component, name } = node;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment