瀏覽代碼

[fix]logo跳转404问题

urrrich 3 年之前
父節點
當前提交
f8037c23ba
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/router/index.js

+ 2 - 2
src/router/index.js

@@ -57,7 +57,7 @@ export const constantRoutes = [
   {
     path: '',
     component: Layout,
-    redirect: 'index',
+    redirect: '/index',
     children: [
       {
         path: '/index',
@@ -160,4 +160,4 @@ const router = createRouter({
   },
 });
 
-export default router;
+export default router;