index.ts 256 B

12345678910111213141516171819
  1. const routes = [
  2. {
  3. path: '/',
  4. redirect: '/home',
  5. },
  6. {
  7. name: '首页',
  8. path: '/home',
  9. component: '../pages/home',
  10. },
  11. {
  12. path: '*',
  13. name: 'noPage',
  14. component: '404',
  15. layout: false,
  16. },
  17. ];
  18. export default routes;