buy-nft.js 951 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { createRouter, createWebHashHistory, createWebHistory } from "vue-router"
  2. import GroupTip from '@/view/iframe/buy-nft/group/tip.vue'
  3. import Home from '@/view/iframe/buy-nft/buy/home.vue'
  4. import Pay from '@/view/iframe/buy-nft/buy/pay.vue'
  5. import OpenBox from '@/view/iframe/buy-nft/buy/open-box.vue'
  6. let routes = [
  7. {
  8. path: '/',
  9. name: 'Home',
  10. component: Home,
  11. },
  12. {
  13. path: '/group',
  14. name: 'GroupTip',
  15. component: GroupTip,
  16. },
  17. {
  18. path: "/pay",
  19. name: 'Pay',
  20. component: Pay
  21. }, {
  22. path: "/open_box",
  23. name: 'OpenBox',
  24. component: OpenBox
  25. }
  26. ]
  27. // 3. 创建路由实例
  28. const router = createRouter({
  29. // 4. 采用hash 模式
  30. history: createWebHashHistory('buy-nft.html'),
  31. // 采用 history 模式
  32. // history: createWebHistory('popup.html'),
  33. routes, // short for `routes: routes`
  34. });
  35. export default router