import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);

export const createRouter = () =>
  new VueRouter({
    routes: [
      /* {
        path: "/uav",
        component: () => import(`../../../src/observe/fckernel/uav`),
      },
      {
        path: "/nest",
        component: () => import(`${path}/observe/fckernel/nest`),
      },*/
      {
        path: "/uavList",
        component: () => import(`@/views/uavList`),
      },
      {
        path: "/dataTransferPanel",
        component: () => import(`@/views/dataTransferPanel`),
      },
      {
        path: "/mqtt",
        component: () => import(`@/views/mqtt`),
      },
      {
        path: "/groundStation",
        component: () => import(`@/views/groundStation`),
      },
      {
        path: "/player",
        component: () => import(`@/views/player`),
      },
      {
        path: "/fkzx",
        component: () => import('@/views/fkzx')
      },
      {
        path: "/fkzx1",
        component: () => import('@/views/fkzx1')
      },
      {
        path: "/fkzx-iframe",
        component: () => import('@/views/fkzxIframe')
      }
    ],
  });

const router = createRouter();

export default router;
