index.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import { createRouter, createWebHistory } from "vue-router";
  2. import HomeIndex from "../views/HomeIndex.vue";
  3. import ApplyPermission from "../views/index/ApplyPermission.vue";
  4. import SplashScreen from "../views/index/SplashScreen.vue";
  5. import RiskTips from "../views/index/RiskTips.vue";
  6. import SearchIcon from "../views/index/SearchIcon.vue";
  7. import Notification from "../views/notification/Index.vue";
  8. import IndexUser from "../views/index/User.vue";
  9. import UserCenter from "../views/index/UserCenter.vue";
  10. const routes = [
  11. {
  12. path: "/",
  13. name: "home",
  14. component: HomeIndex,
  15. },
  16. {
  17. path: "/applyPermission",
  18. name: "applyPermission",
  19. component: ApplyPermission,
  20. },
  21. {
  22. path: "/splashScreen",
  23. name: "splashScreen",
  24. component: SplashScreen,
  25. },
  26. {
  27. path: "/riskTips",
  28. name: "riskTips",
  29. component: RiskTips,
  30. },
  31. {
  32. path: "/searchIcon",
  33. name: "searchIcon",
  34. component: SearchIcon,
  35. },
  36. {
  37. path: "/notification",
  38. name: "notification",
  39. component: Notification,
  40. },
  41. {
  42. path: "/indexUser",
  43. name: "indexUser",
  44. component: IndexUser,
  45. },
  46. {
  47. path: "/userCenter",
  48. name: "userCenter",
  49. component: UserCenter,
  50. },
  51. ];
  52. const router = createRouter({
  53. history: createWebHistory(process.env.BASE_URL),
  54. routes,
  55. });
  56. export default router;