import Vue from 'vue'
import Router from 'vue-router'

// ******

//import Board from './views/Board.vue'
//import pdf from './views/pdf.vue'
//import Callback from './views/Callback.vue'
//import MQTTdemo from './views/mqttdemo.vue'
//import Mobileindex from './views/MobileIndex.vue'
//import Mobiletext from './views/MobileText.vue'
//import BasePick from './components/Chart/OptionView.vue'
//import MobileLogin from './views/MobileLogin.vue'
Vue.use(Router)
const Login = () => import("./views/Login")
const Board = () => import("./views/Board")
const pdf = () => import("./views/pdf")
const Callback = () => import("./views/Callback")
const MQTTdemo = () => import("./views/mqttdemo")
const Mobileindex = () => import("./views/MobileIndex")
const Mobiletext = () => import("./views/MobileText")
const BasePick = () => import("./components/Chart/OptionView")
const MobileLogin = () => import("./views/MobileLogin")
const testconnect=()=>import("./views/testconnect")
export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'login',
            component: Login
        },
        {
            path: '/moblielogin',
            name: 'MobileLogin',
            component: MobileLogin
        },
        {
            path: '/board',
            name: 'board',
            component: Board
        },
        {
            path: '/callback',
            name: 'Callback',
            component: Callback
        },
        {
            path: '/pdf',
            name: 'pdf',
            component: pdf
        },
        {
            path: '/BasePick',
            name: 'BasePick',
            component: BasePick
        },
        {
            path: '/mqttdemo',
            name: 'MQTTdemo',
            component: MQTTdemo
        },
        {
            path: '/mobileindex',
            name: 'Mobileindex',
            component: Mobileindex
        },
        {
            path: '/mobileirs',
            name: 'Mobiletext',
            component: Mobiletext
        },
        {
            path: '/testconnect',
            name: 'testconnect',
            component: testconnect
        },
    ]
})
