From d2f57cb970f5a5257cbe4cc9b1ac417f5962dc8e Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期五, 16 十月 2026 18:00:54 +0800
Subject: [PATCH] chore(config): 开发代理目标由 localhost 改为 127.0.0.1
---
src/router/index.ts | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/router/index.ts b/src/router/index.ts
index 5acec55..efc3f45 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -9,6 +9,7 @@
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