Browse Source

Merge pull request #5 from littleshe/patch-1

[fix]logo跳转404问题
若依 3 years ago
parent
commit
fece6740a4
1 changed files with 2 additions and 2 deletions
  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;