import { createRouter, createWebHashHistory } from 'vue-router';

import allMedia from "./allMedia";
import easyDiffusion from "./easyDiffusion";

import NotFound from "../errorPage/404.vue";

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes: [
    // 稿前校对-全媒体平台
    {
      path: '/Home',
      name: 'Home',
      component: () =>
        import(/* webpackChunkName: "Home" */ '../view/onlineText.vue'),
    },
    ...allMedia,
    ...easyDiffusion,
    {
        path: "/:pathMatch(.*)*",
        name: "NotFound",
        component: NotFound
    }
  ],
});

export default router;
