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

let history = createWebHashHistory()

let routes = [
  {
    path: '/',
    name: 'Affiliate',
    redirect: '/list'
  },
  {
    path: '/list',
    name: 'List',
    component: ()=> import("../Index.vue")
  },
  {
    path: '/info',
    name: 'Info',
    component: ()=> import("../Info.vue")
  },
]

const router = createRouter({ 
  history, 
  routes,
  scrollBehavior(to, from, savedPosition) {
    return { top: 0 };
  }
 })


export default router