From 8cc5ac711647ff756731651cafee10bab096b1e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AE=B6=E8=AE=AD?= Date: Tue, 20 Oct 2026 16:42:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(perf):=20=E7=A7=BB=E9=99=A4=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=98=BB=E5=A1=9E=E5=8A=A0=E8=BD=BD=E7=9A=84?= =?UTF-8?q?=E6=90=9C=E7=8B=90=20IP=20=E7=AC=AC=E4=B8=89=E6=96=B9=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 根因:public/index.html head 内同步引用 pv.sohu.com/cityjson, 浏览器需阻塞等待该外部脚本加载完成(该服务已不稳定,经常长时间挂起), 是登录页打开慢的主因 - ip 参数整链路为死代码:login.vue 取 returnCitySN["cip"] → store handleLogin 透传 → api login() 中根本未使用; 后端也无一处消费 ip 参数(smart-campus 脚手架遗留) - 删除 index.html 脚本引用与 login.vue / store 中的 ip 取值透传 --- public/index.html | 2 -- src/view/login/login.vue | 60 +++++++++++++++++++--------------------- 2 files changed, 29 insertions(+), 33 deletions(-) diff --git a/public/index.html b/public/index.html index 44254d7..b1f991a 100644 --- a/public/index.html +++ b/public/index.html @@ -5,8 +5,6 @@ - - freedom diff --git a/src/view/login/login.vue b/src/view/login/login.vue index 44abf91..be52bc5 100644 --- a/src/view/login/login.vue +++ b/src/view/login/login.vue @@ -34,41 +34,39 @@