|
@@ -4,7 +4,7 @@ import { createRouter, createWebHistory } from 'vue-router';
|
|
|
const router = createRouter({
|
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
|
routes: [
|
|
|
- { path: '/screen', component: () => import('@/pages/screen.page.vue'), meta: { scan: true } },
|
|
|
+ // { path: '/screen', component: () => import('@/pages/screen.page.vue'), meta: { scan: true } },
|
|
|
{ path: '/register', component: () => import('@/pages/register.page.vue'), meta: { title: '建档', scan: true } },
|
|
|
{ path: '/camera', component: () => import('@/modules/camera/camera.page.vue'), meta: { title: '拍摄' } },
|
|
|
{ path: '/camera/result', component: () => import('@/modules/camera/camera-result.page.vue'), meta: { title: '拍摄完成' } },
|
|
@@ -16,4 +16,10 @@ const router = createRouter({
|
|
|
],
|
|
|
});
|
|
|
|
|
|
+router.addRoute(
|
|
|
+ __is_scan__
|
|
|
+ ? { path: '/screen', component: () => import('@/pages/scan.page.vue'), meta: { scan: true } }
|
|
|
+ : { path: '/screen', component: () => import('@/pages/screen.page.vue'), meta: { scan: true } }
|
|
|
+);
|
|
|
+
|
|
|
export default router;
|