1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import { createRouter, createWebHashHistory, createWebHistory } from "vue-router"
- import GroupTip from '@/view/iframe/buy-nft/group/tip.vue'
- import Home from '@/view/iframe/buy-nft/buy/home.vue'
- import Pay from '@/view/iframe/buy-nft/buy/pay.vue'
- import OpenBox from '@/view/iframe/buy-nft/buy/open-box.vue'
- let routes = [
-
- {
- path: '/',
- name: 'Home',
- component: Home,
- },
- {
- path: '/group',
- name: 'GroupTip',
- component: GroupTip,
- },
- {
- path: "/pay",
- name: 'Pay',
- component: Pay
- }, {
- path: "/open_box",
- name: 'OpenBox',
- component: OpenBox
- }
- ]
- // 3. 创建路由实例
- const router = createRouter({
- // 4. 采用hash 模式
- history: createWebHashHistory('buy-nft.html'),
- // 采用 history 模式
- // history: createWebHistory('popup.html'),
- routes, // short for `routes: routes`
- });
- export default router
|