From b8a0afc9826ddd17d60dfc71d48c28aa6d50740f Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Mon, 27 Jul 2026 16:23:09 +0800 Subject: [PATCH] =?UTF-8?q?perf(main):=20=E8=B0=83=E7=94=A8=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=96=87=E4=BB=B6URL?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 main.js 中导入 getFileUrlFromServer 工具函数 - 初始化时调用 getFileUrlFromServer 方法以预加载资源 - 保持其它初始化逻辑不变 --- src/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 2ac00e9..800648c 100644 --- a/src/main.js +++ b/src/main.js @@ -2,6 +2,7 @@ import { setJJBCommonAntdMessage } from "@cqsjjb/jjb-common-lib"; import { setup } from "@cqsjjb/jjb-dva-runtime"; import { message } from "antd"; import dayjs from "dayjs"; +import { getFileUrlFromServer } from "zy-react-library/utils"; import "dayjs/locale/zh-cn"; import "../blessed_by_buddha"; @@ -11,7 +12,7 @@ require("./styles/search-actions-right.less"); dayjs.locale("zh-cn"); setJJBCommonAntdMessage(message); - +getFileUrlFromServer(); window.mapLongitude = "119.69457721306945"; window.mapLatitude = "39.940504336846665";