import { createRouter, createWebHistory } from 'vue-router' import FormSink from './views/FormSink.vue' import OaStart from './views/OaStart.vue' import OaDetail from './views/OaDetail.vue' import OaHistory from './views/OaHistory.vue' import OaMpBind from './views/OaMpBind.vue' export default createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', redirect: (to) => ({ path: '/oa-form-sink', query: to.query, hash: to.hash }) }, { path: '/oa-form-sink', component: FormSink }, { path: '/oa-start', component: OaStart }, { path: '/oa-history', component: OaHistory }, { path: '/oa-detail', component: OaDetail }, { path: '/oa-mp-bind', component: OaMpBind } ] })