perf(main): 调用获取服务器文件URL方法

- 在 main.js 中导入 getFileUrlFromServer 工具函数
- 初始化时调用 getFileUrlFromServer 方法以预加载资源
- 保持其它初始化逻辑不变
master^2
LiuJiaNan 2026-07-27 16:23:09 +08:00
parent 722c4771e6
commit b8a0afc982
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ import { setJJBCommonAntdMessage } from "@cqsjjb/jjb-common-lib";
import { setup } from "@cqsjjb/jjb-dva-runtime"; import { setup } from "@cqsjjb/jjb-dva-runtime";
import { message } from "antd"; import { message } from "antd";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { getFileUrlFromServer } from "zy-react-library/utils";
import "dayjs/locale/zh-cn"; import "dayjs/locale/zh-cn";
import "../blessed_by_buddha"; import "../blessed_by_buddha";
@ -11,7 +12,7 @@ require("./styles/search-actions-right.less");
dayjs.locale("zh-cn"); dayjs.locale("zh-cn");
setJJBCommonAntdMessage(message); setJJBCommonAntdMessage(message);
getFileUrlFromServer();
window.mapLongitude = "119.69457721306945"; window.mapLongitude = "119.69457721306945";
window.mapLatitude = "39.940504336846665"; window.mapLatitude = "39.940504336846665";