From d86ec51d8aa1b4bce02bf72a812e03b4d34a497b Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期五, 16 十月 2026 17:50:46 +0800
Subject: [PATCH] feat(mes): 种子质检支持袋码/托盘码/批次码三种扫码类型

---
 src/router/index.ts |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index d8a8f2e..efc3f45 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -4,11 +4,12 @@
   createWebHistory,
 } from 'vue-router';
 
-import { resetStaticRoutes } from '../packages/utils/src';
+import { resetStaticRoutes } from '@vben/utils';
 
 import { createRouterGuard } from './guard';
 import { routes } from './routes';
 import { setupBaiduTongJi } from './tongji';
+import { mobileScroll } from '#/mobile/scroll';
 
 /**
  *  @zh_CN 鍒涘缓vue-router瀹炰緥
@@ -24,6 +25,8 @@
     if (savedPosition) {
       return savedPosition;
     }
+    const mobilePosition=mobileScroll(to.path);
+    if(mobilePosition)return mobilePosition;
     return to.hash ? { behavior: 'smooth', el: to.hash } : { left: 0, top: 0 };
   },
   // 鏄惁搴旇绂佹灏鹃儴鏂滄潬銆�

--
Gitblit v1.9.3