lex-xin před 3 roky
rodič
revize
792456abd0
2 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. 1 2
      .prettierrc.js
  2. 7 0
      src/router/routes-student.ts

+ 1 - 2
.prettierrc.js

@@ -5,5 +5,4 @@ module.exports = {
   arrowParens: 'avoid',
   trailingComma: 'none',
   endOfLine: 'lf'
-};
-d
+};

+ 7 - 0
src/router/routes-student.ts

@@ -2,5 +2,12 @@ export default [
   {
     path: '/',
     component: () => import('@/student/home/index')
+  },
+  {
+    path: '/home',
+    component: () => import('@/student/home/index'),
+    meta: {
+      isLogin: false, // 是否需要登录
+    }
   }
 ];