import { createRouter, createWebHashHistory } from 'vue-router'; export default createRouter({ history: createWebHashHistory(), routes: [ { path: '/', component: () => import('@/views/Home.vue') }, { path: '/trace/:code', component: () => import('@/views/Trace.vue') }, { path: '/:pathMatch(.*)*', redirect: '/' }, ], });